Part Number Hot Search : 
2SK3512 VK1048 CAT4238 ASM10 KRC284S PA1157 CAT4238 00BGI
Product Description
Full Text Search
 

To Download CS8420 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  preliminary product information this document contains information for a new product. cirrus logic reserves the right to modify this product without notice. 1 copyright ? cirrus logic, inc. 1999 (all rights reserved) p.o. box 17847, austin, texas 78760 (512) 445 7222 fax: (512) 445 7581 http://www.cirrus.com CS8420 digital audio sample rate converter features l complete iec60958, aes3, s/pdif, eiaj cp1201 compatible transceiver with asynchronous sample rate converter l flexible 3-wire serial digital i/o ports l 8 khz to 108 khz sample rate range l 1:3 and 3:1 maximum input to output sample rate ratio l 128 db dynamic range l -117 db thd+n at 1 khz l excellent performance at almost a 1:1 ratio l excellent clock jitter rejection l 24 bit i/o words l pin and micro-controller read/write access to channel status and user data l micro-controller and stand-alone modes general description the CS8420 is a stereo digital audio sample rate con- verter (src) with aes3 type and serial digital audio inputs, aes3 type and serial digital audio outputs, along with comprehensive control ability via a 4-wire microcon- troller port. channel status and user data can be assembled in block sized buffers, making read/modi- fy/write cycles easy. digital audio inputs and outputs may be 24, 20 or 16 bits. the input data can be completely asynchronous to the output data, with the output data being synchronous to an external system clock. target applications include cd-r, dat, md, dvd and vtr equipment, mixing consoles, digital audio transmis- sion equipment, high quality d/a and a/d converters, effects processors and computer audio systems. ordering info CS8420-cs 28-pin soic, -10 to +70c temp. range cdb8420 evaluation board i serial audio input clock & data recovery misc. control aes3 s/pdif encoder serial audio output receiver aes3 s/pdif decoder sample rate converter c&ubit data buffer control port & registers output clock generator rxn rxp ilrck isclk sdin olrck osclk sdout txp txn rst omck emph u tcbl sda/ cdout scl/ cclk ad1/ cdin ad0/ cs int va+ agnd filt rerr vd+ dgnd h/s rmck driver aug 99 ds245pp2
CS8420 2 ds245pp2 table of contents 1. characteristics/specifications ................................................................................. 5 performance specifications ....................................................................................... 5 digital filter characteristics.................................................................................... 5 power and thermal characteristics....................................................................... 5 digital characteristics ................................................................................................. 6 switching characteristics .......................................................................................... 6 switching characteristics - serial audio ports................................................. 7 switching characteristics - control port - spi mode..................................... 8 switching characteristics - control port - i 2 c ? mode ................................... 9 2. typical connection diagram ...................................................................................... 10 3. general description ..................................................................................................... 11 4. data i/o flow and clocking options ....................................................................... 12 5. sample rate converter (src) .................................................................................... 15 5.1 dither .................................................................................................................... ........... 15 5.2 src locking, varispeed and the sample rate ratio register ....................................... 15 6. three-wire serial audio ports ................................................................................. 16 7. aes3 transmitter and receiver ................................................................................ 19 7.1 aes3 receiver ............................................................................................................. .... 19 7.1.1 pll, jitter attenuation, and varispeed ................................................................ 19 8. omck out on rmck .......................................................................................................... .21 9. pll external components .......................................................................................... 21 9.1 error reporting and hold function .................................................................................. 21 9.2 channel status data handling ......................................................................................... 21 9.3 user data handling ........................................................................................................ .. 22 9.4 non-audio auto detection ............................................................................................... 22 9.5 aes3 transmitter .......................................................................................................... ... 23 9.5.1 transmitted frame and channel status boundary timing ................................. 23 9.5.2 txn and txp drivers .......................................................................................... 23 9.6 mono mode operation ..................................................................................................... 24 10. control port description and timing .................................................................. 26 10.1 spi mode ................................................................................................................. ...... 26 10.2 i 2 c mode ........................................................................................................................ 27 10.3 interrupts ............................................................................................................... ......... 27 11. control port register bit definitions ................................................................ 28 12. system and applications issues ............................................................................. 44 12.1 reset, power down and start-up options ..................................................................... 44 12.2 id code and revision code .......................................................................................... 44 contacting cirrus logic support for a complete listing of direct sales, distributor, and sales representative contacts, visit the cirrus logic web site at: http://www.cirrus.com/corporate/contacts/ preliminary product information describes products which are in production, but for which full characterization data is not yet available. advance product infor- mation describes products which are in development and subject to development changes. cirrus logic, inc. has made best effort s to ensure that the information contained in this document is accurate and reliable. however, the information is subject to change without notice and is provi d ed as is without warranty of any kind (express or implied). no responsibility is assumed by cirrus logic, inc. for the use of this information, nor for inf ringements of patents or other rights of third parties. this document is the property of cirrus logic, inc. and implies no license under patents, copyrights, tradem arks, or trade secrets. no part of this publication may be copied, reproduced, stored in a retrieval system, or transmitted, in any form or by any means (electron ic, mechanical, photographic, or otherwise) without the prior written consent of cirrus logic, inc. items from any cirrus logic website or disk may be printed for use by the user. however, no part of the printout or electronic files may be copied, reproduced, stored in a retrieval system, or transmitted, in any form o r by any means (electronic, mechanical, photographic, or otherwise) without the prior written consent of cirrus logic, inc.furthermore, no part of this publication may be used as a basis for manufacture or sale of any items without the prior written consent of cirrus logic, inc. the names of products of cirrus logic, inc. or ot her vendors and suppliers appearing in this document may be trademarks or service marks of their respective owners which may be registered in some jurisdictions. a list of cirrus logic, inc. trade- marks and service marks can be found at http://www.cirrus.com.
CS8420 ds245pp2 3 12.3 power supply, grounding, and pcb layout ................................................................... 44 12.4 synchronization of multiple CS8420s ............................................................................ 45 12.5 extended range sample rate conversion ................................................................... 45 13. software mode - pin description ........................................................................... 46 14. hardware modes ........................................................................................................... 49 14.1 overall description ...................................................................................................... .. 49 14.1.1 hardware mode definitions ............................................................................... 49 14.1.2 serial audio port formats ................................................................................. 49 14.2 hardware mode 1 description ....................................................................................... 50 14.2.1 pin description - hardware mode 1 .................................................................. 51 14.3 hardware mode 2 description ...................................................................................... 53 14.3.1 pin description - hardware mode 2 .................................................................. 54 14.4 hardware mode 3 description ....................................................................................... 56 14.4.1 pin description - hardware mode 3 .................................................................. 58 14.5 hardware mode 4 description ....................................................................................... 60 14.5.1 pin description - hardware mode 4 .................................................................. 62 14.6 hardware mode 5 description ....................................................................................... 64 14.6.1 pin description - hardware mode 5 .................................................................. 65 14.7 hardware mode 6 description ....................................................................................... 67 14.7.1 pin description - hardware mode 6 .................................................................. 68 15. appendix a: external aes3/spdif/iec60958 transmitter and receiver components .............................................................. 70 15.1 aes3 transmitter external components ....................................................................... 70 15.2 aes3 receiver external components ........................................................................... 70 15.3 isolating transformer requirements ............................................................................. 71 16. appendix b: channel status and user data buffer management .......... 72 16.1 aes3 channel status(c) bit management .................................................................... 72 16.1.1 manually accessing the e buffer ....................................................................... 72 16.1.2 reserving the first 5 bytes in the e buffer ......................................................... 74 16.1.3 serial copy management system (scms) ....................................................... 74 16.1.4 channel status data e buffer access .............................................................. 74 16.1.5 one byte mode ................................................................................................. 74 16.1.6 two byte mode ................................................................................................. 74 16.2 aes3 user (u) bit management .................................................................................... 75 16.2.1 mode 1: transmit all zeros ............................................................................... 75 16.2.2 mode 2: block mode ......................................................................................... 75 16.2.3 iec60958 recommended u data format for consumer applications ............ 75 16.2.4 mode (3): reserved .......................................................................................... 76 16.2.5 mode (4): iec consumer b ............................................................................... 76 17. parameter definitions ................................................................................................ 77 18. package dimensions .................................................................................................... 78 list of figures figure 1. audio ports master mode timing..................................................................................... 7 figure 2. audio ports slave mode and data i/o timing ................................................................. 7 figure 3. spi mode timing ...................................................................................................... ....... 8 figure 4. i 2 c mode timing .............................................................................................................. 9 figure 5. recommended connection diagram for software mode .............................................. 10 figure 6. software mode audio data flow switching options...................................................... 12 figure 7. serial audio input, using pll, src enabled ................................................................. 13 figure 8. serial audio input, no pll, src enabled ..................................................................... 13 figure 9. aes3 input, src enabled ............................................................................................. 1 3 figure 10. serial audio input, aes3 input clock source, src enabled ...................................... 13
CS8420 4 ds245pp2 figure 11. serial audio input, src output clocked by aes3 recovered clock........................... 14 figure 12. aes3 input, src to serial audio output, serial audio input to aes3 out.................. 14 figure 13. aes3 input to serial audio output, serial audio input to aes3 out, no src............. 14 figure 14. aes3 input to serial audio output only ...................................................................... 14 figure 15. input serial port to aes3 transmitter .......................................................................... 14 figure 16. serial audio input example formats............................................................................ 17 figure 17. serial audio output example formats......................................................................... 18 figure 18. jitter attenuation characteristics of pll with slow filter components...................... 20 figure 19. jitter attenuation characteristics of pll with medium filter components ................ 20 figure 20. jitter attenuation characteristics of pll with fast filter components ....................... 20 figure 21. aes3 receiver timing for c & u pin output data ........................................................ 22 figure 22. aes3 transmitter timing for c, u and v pin input data............................................... 24 figure 23. mono mode operation compared to normal stereo operation................................... 25 figure 24. control port timing in spi mode.................................................................................. 26 figure 25. control port timing in i 2 c mode .................................................................................. 27 figure 26. hardware mode 1 - default data flow, aes3 input..................................................... 50 figure 27. hardware mode 2 - default data flow, serial audio input .......................................... 53 figure 28. hardware mode 3 - transceive data flow, with src.................................................. 56 figure 29. hardware mode 4 - transceive data flow, without src............................................. 60 figure 30. hardware mode 5 - aes3 receiver only..................................................................... 64 figure 31. hardware mode 6 - aes3 transmitter only................................................................. 67 figure 32. professional output circuit ......................................................................................... .70 figure 33. consumer output circuit............................................................................................. .70 figure 34. ttl/cmos output circuit ............................................................................................ 7 0 figure 35. professional input circuit .......................................................................................... ... 71 figure 36. transformerless professional input circuit .................................................................. 71 figure 37. consumer input circuit .............................................................................................. .. 71 figure 38. ttl/cmos input circuit.............................................................................................. .71 figure 39. channel status data buffer structure.......................................................................... 72 figure 40. channel status block handling when fso is not equal to fsi .................................... 73 figure 41. flowchart for reading the e buffer .............................................................................. 73 figure 42. flowchart for writing the e buffer ................................................................................ 73 list of tables table 1. pll external component values .................................................................................... 21 table 2. summary of all bits in the control register map............................................................. 29 table 3. hardware mode definitions ............................................................................................. 49 table 4. serial audio output formats available in hardware mode ............................................. 49 table 5. serial audio input formats available in hardware mode................................................ 49 table 6. hardware mode 1 start-up options................................................................................. 50 table 7. hw mode 2a copy/c and orig/u pin function .......................................................... 53 table 8. hw mode 2 serial audio port format selection ............................................................. 53 table 9. hardware mode 2 start-up options................................................................................. 53 table 10. hardware mode 3 start-up options............................................................................... 57 table 11. hardware mode 4 start-up options............................................................................... 61 table 12. hardware mode 5 start-up options............................................................................... 64 table 13. hw 6c copy/c and orig pin function ....................................................................... 67 table 14. hw 6 serial audio port format selection ..................................................................... 67
CS8420 ds245pp2 5 1. characteristics/specifications performance specifications (t a = 25 c; va+ = vd+ = 5v 5%) digital filter characteristics (t a = 25 c; va+ = vd+ = 5v 5%) notes: 1. the value shown is for fsi = fso = 48 khz. the group delay scales with input and output sample rate according to the following formula: t gd = 41/fsi + 43/fso power and thermal characteristics (agnd, dgnd = 0v, all voltages with respect to ground) notes: 2. -cs parts are specified to operate over -10c to 70 c but are tested at 25 c only. * parameter definitions are given at the end of this data sheet parameter* symbol min typ max units dynamic range 120 128 - db input sample rate (serial input port) fsi 8 - 108 khz output sample rate fso 8 - 108 khz output to input sample rate ratio 0.33 - 3 total harmonic distortion + noise 1 khz, -1dbfs, 0.33 < fso/fsi < 1.7 1 khz, -1dbfs, 0.33 < fso/fsi < 3 10 khz, -1dbfs, 0.33 < fso/fsi < 1.7 10 khz, -1dbfs, 0.33 < fso/fsi < 3 thd+n - - - - - - - - -117 -112 -110 -107 db db db db peak idle channel noise component - - -140 dbfs input jitter tolerance of src - - tbd ns resolution 16 - 24 bits gain error -0.12 - 0 db parameter* symbol min typ max units passband upsampling downsampling 0 0 - - 0.4535*fsi 0.4535*fso hz hz passband ripple - - 0.007 db stopband (downsampling) 0.5465*fso - fsi/2 hz stopband attenuation 110 - - db group delay (note 1) t gd - - 1.75 ms group delay variation vs. frequency d t gd --0.0 m s interchannel phase deviation - - 0.0 parameter symbol min typ max units power supply voltage vd+,va+ 4.75 5.0 5.25 v power consumption at 96 khz fso and fsi power consumption at 48 khz fso and fsi - - 660 350 tbd tbd mw mw supply current at 96 khz fso and fsi va+ vd+ - - 7.0 125 tbd tbd ma ma supply current in power down (rst high, vd+ & va+) -0.5- ma ambient operating temperature (note 2) t a -10 25 70 c junction temperature t j - - 135 c junction to ambient thermal impedance (28 pin soic) q ja -65-c/w
CS8420 6 ds245pp2 absolute maximum ratings (agnd, dgnd = 0v, all voltages with respect to ground) notes: 3. transient currents of up to 100ma will not cause scr latch-up. digital characteristics (t a = 25 c; va+ = vd+ = 5v 5%) switching characteristics (t a = 25 c; va+ = vd+ = 5v 5%, inputs: logic 0 = 0v, logic 1 = vd+; c l = 20 pf) notes: 4. pll is bypassed, clock is input to the rmck pin. the value given is guaranteed to work, with an external rmck applied the part will actually work at much lower frequencies. parameter symbol min max units power supply voltage vd+,va+ - 6.0 v input current, any pin except supply, rxp, rxn (note 3) i in -10ma input current, rxp, rxn i in 0.25 tbd ma input voltage v in -0.3 (vd+) + 0.3 v ambient operating temperature (power applied) t a -55 125 c storage temperature t stg -65 150 c parameter symbol min typ max units high-level input voltage, except rxp, rxn v ih 2.0 - (vd+) + 0.3 v low-level input voltage, except rxp, rxn v il -0.3 - 0.8 v low-level output voltage, (io=-20ua), except txp, txn v ol --0.4v high-level output voltage, (io=20ua), except txp, txn v oh (vd+) - 1 - - v input leakage current i in -1015 m a differential input voltage, rxp to rxn v th 200 - - mv output high voltage, txp, txn (i oh = -21ma) (vd+) - 0.7 (vd+) - 0.4 -v output low voltage, txp, txn (i ol = 21ma) - 0.4 0.7 v parameter symbol min typ max units rst pin low pulse width 200 - - m s omck frequency for omck = 512*fso 4.096 - 55.3 mhz omck low and high width for omck = 512*fso 8.2 - - ns omck frequency for omck = 384*fso 3.072 - 41.5 mhz omck low and high width for omck = 384*fso 12.3 - - ns omck frequency for omck = 256*fso 2.048 - 27.7 mhz omck low and high width for omck = 256*fso 16.4 - - ns pll clock recovery sample rate range 8.0 - 108.0 khz rmck output jitter - 200 - ps rms rmck output duty cycle 40 50 60 % rmck input frequency (note 4) 2.048 - 27.7 mhz rmck input low and high width (note 4) 16.4 - - ns aes3 transmitter output jitter - - 1 ns
CS8420 ds245pp2 7 switching characteristics - serial audio ports (t a = 25 c; va+ = vd+ = 5v 5%, inputs: logic 0 = 0v, logic 1 = vd+; c l = 20 pf) notes: 5. the active edges of isclk and osclk are programmable. 6. the polarity of ilrck and olrck is programmable. 7. this delay is to prevent the previous i/osclk edge from being interpreted as the first one after i/olrck has changed. 8. this setup time ensures that this i/osclk edge is interpreted as the first one after i/olrck has changed. parameter symbol min typ max units osclk active edge to sdout output valid (note 5) t dpd --20ns sdin setup time before isclk active edge (note 5) t ds 20 - - ns sdin hold time after isclk active edge (note 5) t dh 20 - - ns master mode o/rmck to i/osclk active edge delay (note 5) t smd 0-10ns o/rmck to i/olrck delay (note 6) t lmd 0-10ns i/osclk and i/olrck duty cycle - 50 - % slave mode i/osclk period t sckw 36 - - ns i/osclk input low width t sckl 14 - - ns i/osclk input high width t sckh 14 - - ns i/osclk active edge to i/olrck edge (note 5,6,7) t lrckd 20 - - ns i/olrck edge setup before i/osclk active edge (note 5,6,8) t lrcks 20 - - ns sckh sckl sckw t t t t dpd sdout (input) (input) sdin dh t ds t lrcks t lrckd t isclk osclk ilrck olrck isclk osclk ilrck olrck (output) (output) rmck omck (input) t smd t lmd figure 1. audio ports master mode timing figure 2. audio ports slave mode and data i/o timing
CS8420 8 ds245pp2 switching characteristics - control port - spi mode (t a = 25 c; va+ = vd+ = 5v 5%, inputs: logic 0 = 0v, logic 1 = vd+; c l = 20 pf) notes: 9. if fso or fsi is lower than 46.875 khz, then maximum cclk frequency should be less than 128fso and less than 128fsi. this is dictated by the timing requirements necessary to access the channel status and user bit buffer memory. access to the control register file can be carried out at the full 6 mhz rate. the minimum allowable input sample rate is 8 khz, so choosing cclk of less than or equal to 1.024 mhz should be safe for all possible conditions 10. data must be held for sufficient time to bridge the transition time of cclk. 11. for f sck <1 mhz. parameter symbol min typ max units cclk clock frequency (note 9) f sck 0-6.0mhz cs high time between transmissions t csh 1.0 - - m s cs falling to cclk edge t css 20 - - ns cclk low time t scl 66 - - ns cclk high time t sch 66 - - ns cdin to cclk rising setup time t dsu 40 - - ns cclk rising to data hold time (note 10) t dh 15 - - ns cclk falling to cdout stable t pd --45ns rise time of cdout t r1 --25ns fall time of cdout t f1 --25ns rise time of cclk and cdin (note 11) t r2 - - 100 ns fall time of cclk and cdin (note 11) t f2 - - 100 ns t r2 t f2 t dsu t dh t sch t scl cs cclk cdin t css t pd cdout t csh figure 3. spi mode timing
CS8420 ds245pp2 9 switching characteristics - control port - i 2 c ? mode (note 12, t a = 25 c; va+ = vd+ = 5v 5%, inputs: logic 0 = 0v, logic 1 = vd+; c l = 20 pf) notes: 12. i 2 c is a registered trademark of philips semiconductors. 13. data must be held for sufficient time to bridge the 300ns transition time of scl. specifications are subject to change without notice parameter symbol min typ max units scl clock frequency f scl - - 100 khz bus free time between transmissions t buf 4.7 - - m s start condition hold time (prior to first clock pulse) t hdst 4.0 - - m s clock low time t low 4.7 - - m s clock high time t high 4.0 - - m s setup time for repeated start condition t sust 4.7 - - m s sda hold time from scl falling (note 13) t hdd 0- - m s sda setup time to scl rising t sud 250 - - ns rise time of both sda and scl lines t r --1 m s fall time of both sda and scl lines t f - - 300 ns setup time for stop condition t susp 4.7 - - m s t buf t hdst t hdst t low t r t f t hdd t high t sud t sust t susp stop start start stop repeated sda scl figure 4. i 2 c mode timing
CS8420 10 ds245pp2 2. typical connection diagram CS8420 cable termination rxp rxn aes3/ spdif source 3-wire serial audio source ilrck isclk sdin clock source and control rmck omck hardware control rst rerr emph tcbl to other CS8420's cable interface aes3/ spdif equipment txp txn 3-wire serial audio input device olrck osclk sdout microcontroller sda/cdout ad0/cs scl/cclk ad1/cdin u int va+ vd+ ferrite * bead +5v analog supply * +5v digital supply 0.1 f m 0.1 f m * a separate analog supply is only necessary in applications where rmck is used for a jitter sensitive task. for applications where rmck is not used for a jitter sensitive task, connect va+ to vd+ via a ferrite bead. keep the decoupling capacitor between va+ and agnd. dgnd filt agnd rfilt cfilt crip h/s 47k w figure 5. recommended connection diagram for software mode
CS8420 ds245pp2 11 3. general description the CS8420 is a fully asynchronous sample rate converter plus aes3 transceiver intended to be used in digital audio systems. such systems include digital mixing consoles, effects processors, tape re- corders and computer multimedia systems. the CS8420 is intended for 16, 20, and 24-bit applica- tions where the input sample rate is unknown, or is known to be asynchronous to the system sample rate. on the input side of the CS8420, aes3 or a 3-wire serial format can be chosen. the output side pro- duces both aes3 and a 3-wire serial format. an i 2 c/spi compatible microcontroller interface al- lows full block processing of channel status and user data via block reads from the incoming aes3 data stream and block writes to the outgoing aes3 data stream. the user can also access information decoded from the input aes3 data stream, such as the presence of non-audio data and pre-emphasis, as well as control the various modes of the device. for users who prefer not to use a micro-controller, six hardware modes have been provided, docu- mented towards the end of this data sheet. in these modes, flexibility is limited, with pins providing some programmability. when used for aes3 in, aes3 out applications, the CS8420 can automatically transceive user data that conforms to the iec60958 recommended format. the CS8420 also allows access to the relevant bits in the aes3 data stream to comply with the serial copy management system (scms). the diagram on the cover of this data sheet shows the main functional blocks of the CS8420. figure 5 shows the supply and external connections to the device. familiarity with the aes3 and iec60958 specifi- cations are assumed throughout this document. the application note: overview of digital audio in- terface data structures, contains a tutorial on dig- ital audio specifications. the paper an understanding and implementation of the scms serial copy management system for digital audio transmission, by clif sanchez, is an excellent tu- torial on scms. it may be obtained from crystal semiconductor, or from the aes. to guarantee system compliance, the proper stan- dards documents should be obtained. the latest aes3 standard should be obtained from the audio engineering society or ansi, the latest iec60958 standard from the international electrotechnical commission and the latest eiaj cp-1201 standard from the japanese electronics bureau.
CS8420 12 ds245pp2 4. data i/o flow and clocking options the CS8420 can be configured for nine connectiv- ity alternatives, called data flows. each data flow has an associated clocking set-up. figure 6 shows the data flow switching, along with the control reg- ister bits which control the switches; this drawing only shows the audio data paths for simplicity. the aesbp switch allows a ttl level, already bi- phase mark encoded, data stream connected to rxp to be routed to the txp and txn pin drivers. the txoff switch causes the txp and txn out- puts to be driven to ground. in modes including the src function, there are two audio data related clock domains. one domain in- cludes the input side of src, plus the attached data source. the second domain includes the output side of the src, plus any attached output ports. there are two possible clock sources. the first is known as the recovered clock, is the output of a pll, and is connected to the rcmk pin. the input to the pll can be either the incoming aes3 data stream, or the ilrck word rate clock from the se- rial audio input port. the second clock is input via the omck pin, and would normally be a crystal derived stable clock. the clock source control register bits determine which clock is connected to which domain. by studying the following drawings, and appropri- ately setting the data flow control and clock source control register bits, the CS8420 can be configured to fit a variety of customer require- ments. the following drawings illustrate the possible valid data flows. the audio data flow is indicated by the thin lines; the clock routing is indicated by the bold lines. the register settings for the data flow con- trol register and the clock source register are also shown for each data flow. some of the register set- tings may appear to be not relevant to the particular data flow in question, but have been assigned a par- ticular state. this is done to minimize power con- sumption. the aesbp data path from the rxp pin to the aes3 output drivers, and the txoff con- trol, have been omitted for clarity, but are present and functional in all modes where the aes3 trans- mitter is in use. figures 7 and 8 show audio data entering via the se- rial audio input port, then passing through the sam- ple rate converter, and then output both to the serial audio output port and to the aes3 transmitter. fig- ure 7 shows the pll recovering the input clock from ilrck word clock. figure 8 shows using a serial audio input aes3 encoder serial audio output receiver sample rate converter rxp rxn ilrck isclk sdin olrck osclk sdou t txp txn aes3 txoff aesbp spd1-0 txd1-0 srcd figure 6. software mode audio data flow switching options
CS8420 ds245pp2 13 direct 256*fsi clock input via the rmck pin, in- stead of the pll. figure 9 shows audio data entering via the aes3 receiver. the pll locks onto the pre-ambles in the incoming audio stream, and generates a 256*fsi clock. the rate converted data is then output via the serial audio output port and via the aes3 transmit- ter. figure 10 shows the same data flow as figure 7. the input clock is derived from an incoming aes3 data stream. the incoming data must be synchro- nous to the aes3 data stream. figure 11 shows the same data flow as figure 7. the input data must be synchronous to omck. the output data is clocked by the recovered pll clock from an aes3 input stream. this may be used to implement a house sync architecture. figure 8 shows audio data entering via the aes3 receiver, passing through the sample rate converter, and then exiting via the serial audio output port. synchronous audio data may then be input via the serial audio input port and output via the aes3 transmitter. figure 13 is the same as figure 12, but without the sample rate converter. the whole data path is clocked via the pll generated recovered clock. figure 14 illustrates a standard aes3 receiver function, with no rate conversion. figure 15 shows a standard aes3 transmitter func- tion, with no rate conversion. figure 7. serial audio input, using pll, src enabled figure 8. serial audio input, no pll, src enabled serial audio input aes3 encoder &driver serial audio output sample rate converter ilrck isclk sdin olrck osclk sdout txp txn pll rmck omck txd1-0: spd1-0: srcd: outc: inc: rxd1-0: 00 00 0 0 0 00 clock source control bits data flow control bits serial audio input aes3 encoder &driver serial audio output sample rate converter ilrck isclk sdin olrck osclk sdout txp txn rmck omck txd1-0: spd1-0: srcd: outc: inc: rxd1-0: 00 00 0 0 0 10 clock source control bits data flow control bits aes3 encoder &driver serial audio output sample rate converter olrck osclk sdout txp txn pll rmck omck txd1-0: spd1-0: srcd: outc: inc: rxd1-0: 00 00 1 0 0 01 clock source control bits data flow control bits aes3 rx & decode rxp rxn serial audio input aes3 encoder &driver serial audio output sample rate converter ilrck isclk sdin olrck osclk sdout txp txn pll rmck omck txd1-0: spd1-0: srcd: outc: inc: rxd1-0: 00 00 0 0 0 01 clock source control bits data flow control bits aes3 rx rxp rxn figure 9. aes3 input, src enabled figure 10. serial audio input, aes3 input clock
CS8420 14 ds245pp2 figure 11. serial audio input, src output clocked by aes3 recovered clock figure 12. aes3 input, src to serial audio output, serial audio input to aes3 out aes3 encoder &driver serial audio output sample rate converter txp tx n pll rmck omck txd1-0: spd1-0: srcd: outc: inc: rxd1-0: 01 00 1 0 0 01 clock source control bits data flow control bits aes3 rx & decode rxp rxn serial audio input olrck osclk sdout ilrck isclk sdin serial audio input aes3 encoder &driver serial audio output sample rate converter ilrck isclk sdin olrck osclk sdout txp txn pll rmck omck txd1-0: spd1-0: srcd: outc: inc: rxd1-0: 00 00 0 1 1 01 clock source control bits data flow control bits aes3 rx rxp rxn figure 13. aes3 input to serial audio output, serial audio input to aes3 out, no src figure 14. aes3 input to serial audio output only aes3 encoder &driver serial audio output olrck osclk sdout txp tx n pll rmck txd1-0: spd1-0: srcd: outc: inc: rxd1-0: 01 10 0 1 0 01 clock source control bits data flow control bits aes3 rx & decode rxp rxn serial audio input ilr c k isclk sdin serial audio output olrck osclk sdou t pll rmck txd1-0: spd1-0: srcd: txoff: outc: inc: rxd1-0: 10 10 0 1 1 0 01 clock source control bits data flow control bits aes3 rx & decode rxp rxn serial audio input aes3 encoder &driver ilrck isclk sdin txp tx n omck txd1-0: spd1-0: srcd: outc: inc: rxd1-0: 01 01 0 0 1 00 clock source control bits data flow control bits figure 15. input serial port to aes3 transmitter
CS8420 ds245pp2 15 5. sample rate converter (src) multirate digital signal processing techniques are used to conceptually upsample the incoming data to very high rate and then downsample to the out- going rate, resulting in a 24 bit output, regardless of the width of the input. the filtering is designed so that a full input audio bandwidth of 20 khz is pre- served if the input sample and output sample rates are greater than 44.1 khz. when the output sample rate becomes less than the input sample rate, the in- put is automatically bandlimited to avoid aliasing products in the output. careful design ensures min- imum ripple and distortion products are added to the incoming signal. the src also determines the ratio between the incoming and outgoing sample rates, and sets the filter corner frequencies appro- priately. any jitter in the incoming signal has little impact on the dynamic performance of the rate con- verter, and has no influence on the output clock. 5.1 dither when using the aes3 input, and when using the serial audio input port in left justified and i 2 s modes, all input data is treated as 24-bits wide. any truncation that has been done prior to the CS8420 to less than 24-bits should have been done using an appropriate dither process. if the serial audio input port is used to feed the src, and the port is in right justified mode, then the input data will be truncated to the sires bit setting value. if sires bits are set to 16 or 20-bits, and the input data is 24-bits wide, then truncation distortion will occur. similarly, in any serial audio input port mode, if an inadequate number of bit clocks are entered (say 16 instead of 20), then the input words will be truncated, causing truncation distortion at low levels. in summary, there is no dithering mechanism on the input side of the CS8420, and care must be taken to ensure that no truncation occurs. dithering is used internally where appropriate in- side the src block. the output side of the src can be set to 16, 20 or 24 bits. optional dithering can be applied, and is automatically scaled to the selected output word length. this dither is not correlated between left and right channels. it is recommended that the dith- er control bit be left in its default on state. 5.2 src locking, varispeed and the sample rate ratio register the src calculates the ratio between the input sample rate and the output sample rate, and uses this information to set up various parameters inside the src block. the src takes some time to make this calculation. for a worst case 3:1 to 1:3 input sample rate transition, the src will take 9400/fso to settle (195 ms at fso of 48 khz). for a power-up situation, the src will start from 1:1, the worst case time becomes 8300/fso (172 ms at fso of 48 khz). if the pll is in use (either aes3 or serial input port), then the worst case locking time for the pll and the src is the sum of each locking time. if fsi is changing, for example in a varispeed appli- cation, the reunlock interrupt will occur, and the src will track the incoming sample rate. dur- ing this tracking mode, the src will still rate con- vert the audio data, but at increased distortion levels. once the incoming sample rate is stable, then the reunlock interrupt will become false, and the src will return to normal levels of audio quality. the vfifo interrupt occurs if the data buffer in the src overflows, which can occur if the input sam- ple rate changes at >10%/second. varispeed at fsi slew rates approaching 10%/sec is only supported when the input is via the serial au- dio input port. when using the aes3 input, high frame rate slew rates will cause the pll to lose lock. the sample rate ratio is also made available as a register, accessible via the control port. the upper
CS8420 16 ds245pp2 2 bits of this register form the integer part of the ra- tio, while the lower 6 bits form the fractional part. since, in many instances, fso is known, this allows the calculation of the incoming sample rate by the host microcontroller. 6. three-wire serial audio ports a 3-wire serial audio input port and a 3-wire serial audio output port is provided. each port can be ad- justed to suit the attached device via control regis- ters. the following parameters are adjustable: master or slave, serial clock frequency, audio data resolution, left or right justification of the data rel- ative to left/right clock, optional 1 bit cell delay of the 1st data bit, the polarity of the bit clock and the polarity of the left/right clock. by setting the appro- priate control bits, many formats are possible. figure 16 shows a selection of common input for- mats, along with the control bit settings. the clock- ing of the input section of the CS8420 may be derived from the incoming ilrck word rate clock, using the on-chip pll. the pll operation is de- scribed in the aes receiver description on page 19. in the case of use with the serial audio input port, the pll locks onto the leading edges of the ilrck clock. figure 17 shows a selection of common output for- mats, along with the control bit settings. a special aes3 direct output format is included, which al- lows serial output port access to the v, u, and c bits embedded in the serial audio data stream. the p bit is replaced by a bit indicating the location of the start of a block. this format is only available when the serial audio output port is being clocked by the aes3 receiver recovered clock. also, the re- ceived channel status block start signal is only available in hardware mode 5, as the rcbl pin. in master mode, the left/right clock and the serial bit clock are outputs, derived from the appropriate clock domain master clock. in slave mode, the left/right clock and the serial bit clock are inputs. the left/right clock must be syn- chronous to the appropriate master clock, but the serial bit clock can be asynchronous and discontin- uous if required. by appropriate phasing of the left/right clock and control of the serial clocks, multiple CS8420s can share one serial port. the left/right clock should be continuous, but the duty cycle does not have to be 50%, provided that enough serial clocks are present in each phase to clock all the data bits. when in slave mode, the se- rial audio output port must be set to left justified or i 2 s data. when using the serial audio output port in slave mode with an olrck input which is asynchro- nous to the ports data source, then an interrupt bit is provided to indicate when repeated or dropped samples occur. the CS8420 allows immediate mute of the serial audio output port audio data via a control register bit.
CS8420 ds245pp2 17 ilrck isclk sdin 2 left justified (in) msb lsb left right msb i s (in) right justified (in) msb lsb msb lsb msb left right msb lsb msb lsb left right lsb msb lsb ilrck isclk sdin ilrck isclk sdin figure 16. serial audio input example formats x = dont care to match format, but does need to be set to the desired setting + i 2 s can accept an arbitrary number of bits, determined by the number of isclk cycles * not 11 - see serial input port data format register bit descriptions for an explanation of the meaning of each bit sims sisf sires1/0 sijust sidel sispol silrpol left justified x x 00 0 0 0 0 i 2 s xx00+0 1 0 1 right justified x x xx* 1 0 0 0
CS8420 18 ds245pp2 msb lsb left right msb i s (out) right justified (out) olrck osclk sdout olrck osclk sdout 2 msb lsb msb lsb msb left right left justified (out) msb lsb olrck osclk sdout msb lsb left right lsb msb lsb olrck osclk sdout msb lsb msb left right aes3 direct (out) vp uc lsb lsb vp uc figure 17. serial audio output example formats x = dont care to match format, but does need to be set to the desired setting * not 11 - see serial output data format register bit descriptions for an explanation of the meaning of each bit soms sosf sores1/0 sojust sodel sospol solrpol left justified x x xx* 0 0 0 0 i 2 s xxxx*0 1 0 1 right justified 1 x xx* 1 0 0 0 aes3 direct x x 11 0 0 0 0
CS8420 ds245pp2 19 7. aes3 transmitter and receiver the CS8420 includes an aes3 type digital audio receiver and an aes3 type digital audio transmit- ter. a comprehensive buffering scheme provides read/write access to the channel status and user da- ta. this buffering scheme is described in the ap- pendix: channel status and user data buffer management on page 72. 7.1 aes3 receiver the aes3 receiver accepts and decodes audio and digital data according to the aes3, iec60958 (s/pdif), and eiaj cp-1201 interface standards. the receiver consists of a differential input stage, accessed via pins rxp and rxn, a pll based clock recovery circuit, and a decoder which sepa- rates the audio data from the channel status and user data. external components are used to terminate and iso- late the incoming data cables from the CS8420. these components are detailed in the appendix external aes/spdif/iec60958 transmitter and receiver components on page 70. 7.1.1 pll, jitter attenuation, and varispeed an on-chip phase locked loop (pll) is used to re- cover the clock from the incoming data stream. al- though the on-chip sample rate converter is immune to large amounts of jitter, there are some applications where low jitter in the recovered clock, presented on the rmck pin, is important. for this reason, the pll has been designed to have good jitter attenuation characteristics, shown in figures 18, 19 & 20. in addition, the pll has been designed to only use the preambles of the aes3 stream to provide lock update information to the pll. this results in the pll being immune to data dependent jitter affects, since the aes3 preambles do not vary with the data. the pll has the ability to lock onto a wide range of input sample rates, with no external component changes. if the sample rate of the input subsequently changes, for example in a varispeed application, then the pll will only track up to 12.5% from the nominal center sample rate. the nominal center sample rate is the sample rate that the pll first locks onto upon application of an aes3 data stream, or after enabling the CS8420 clocks by setting the run control bit. if the 12.5% sample rate limit is exceeded, the pll will return to its wide lock range mode, and re-ac- quire a new nominal center sample rate.
CS8420 20 ds245pp2 figure 18. jitter attenuation characteristics of pll with slow filter components figure 19. jitter attenuation characteristics of pll with medium filter components -60 -50 -40 -30 -20 -10 0 10 1 10 100 1000 10000 100000 jitter frequency (hz) jitter attenuation (db) -60 -50 -40 -30 -20 -10 0 10 1 10 100 1000 10000 100000 jitter frequency (hz) jitter attenuation (db) -60 -50 -40 -30 -20 -10 0 10 1 10 100 1000 10000 100000 jitter frequency (hz) jitter attenuation (db) figure 20. jitter attenuation characteristics of pll with fast filter components
CS8420 ds245pp2 21 8. omck out on rmck a special mode is available that allows the clock that is being input through the omck pin to be out- put through the rmck pin. this feature is con- trolled by the swclk bit in register 4 of the control registers. when the pll loses lock the fre- quency of the vco drops to 300 khz. the swclk function allows the clock from rmck to be used as a clock in the system without any disruption when input is removed from the receiver. 9. pll external components the pll behavior is affected by the external filter component values. figure 5 shows the configura- tion of the required 2 capacitors and 1 resistor. two alternate sets of component values are recommend- ed, depending on the requirements of the applica- tion (see table 1). the default set, called fast, accommodates input sample rates of 16 khz to 108 hz with no component changes. it has the highest corner frequency jitter attenuation curve, and takes the shortest time to lock. the alternate component set, called medium allows the lowest input sample rate to be 8 khz, and increases the lock time of the pll. lock times are worst case for an fsi transition of 96 khz. 9.1 error reporting and hold function while decoding the incoming aes3 data stream, the CS8420 can identify several kinds of error, in- dicated in the receiver error register. the un- lock bit indicates whether the pll is locked to the incoming aes3 data. the v bit reflects the cur- rent validity bit status. the conf (confidence) bit indicates the amplitude of the eye pattern opening, indicating a link that is close to generating errors. the bip (bi-phase) error bit indicates an error in in- coming bi-phase coding. the par (parity) bit indi- cates a received parity error. the error bits are sticky: they are set on the first occurrence of the associated error, and will remain set until the user reads the register via the control port. this enables the register to log all unmasked errors that occurred since the last time the register was read. the receiver error mask register allows masking of individual errors. the bits in this register serve as masks for the corresponding bits of the receiver error register. if a mask bit is set to 1, the error is considered unmasked, meaning that its occurrence will be reported in the receiver error register, will affect the rerr pin, will invoke the occurrence of a rerr interrupt, and will affect the current audio sample according to the status of the hold bits. the hold bits allow a choice of holding the pre- vious sample, replacing the current sample with zero (mute), or do not change the current audio sample. if a mask bit is set to 0, the error is consid- ered masked, meaning that its occurrence will not be reported in the receiver error register, will not induce a pulse on rerr or generate a rerr inter- rupt, and will not affect the current audio sample. the qcrc and ccrc errors do not affect the cur- rent audio sample, even if unmasked. 9.2 channel status data handling the first 2 bytes of the channel status block are de- coded into the receiver channel status register. the setting of the chs bit in the channel status data buffer control register determines whether type rfilt (k w )cfilt ( m f) crip ( n f) fsi range (khz) pll lock time (ms) medium 0.909 1.8 33 8 to 96 56 fast 1.78 0.47 8.2 16 to 108 15 table 1. pll external component values
CS8420 22 ds245pp2 the channel status decodes are from the a channel (chs = 0) or b channel (chs = 1). the pro (professional) bit is extracted directly. also, for consumer data, the copy (copyright) bit is extracted, and the category code and l bits are decoded to determine scms status, indicated by the orig (original) bit. finally, the audio bit is extracted, and used to set an audio indicator, as described in the non-audio auto detection section below. if 50/15 s pre-emphasis is detected, then this is re- flected in the state of the emph pin. the encoded sample word length channel status bits are decoded according to aes3-1992 or iec 60958. if the aes3 receiver is the data source for the src, then the src audio input data is truncated according to the channel status word length set- tings. audio data routed to the serial audio output port is unaffected by the word length settings; all 24 bits are passed on as received. the appendix: channel status and user data buff- er management (page 72) describes the overall handling of cs and u data. 9.3 user data handling the incoming user data is buffered in a user acces- sible buffer. various automatic modes of re-trans- mitting received u data are provided. the appendix: channel status and user data buffer management (page 72) describes the overall han- dling of cs and u data. received u data may also be output to the u pin, under the control of a control register bit. depend- ing on the data flow and clocking options selected, there may not be a clock available to qualify the u data output. figure 21 illustrates the timing. if the incoming user data bits have been encoded as q-channel subcode, then the data is decoded and presented in 10 consecutive register locations. an interrupt may be enabled to indicate the decoding of a new q-channel block, which may be read via the control port. 9.4 non-audio auto detection since it is possible to convey non-audio data in an aes3 data stream, it is important to know whether the incoming aes3 data stream is digital audio or not. this information is typically conveyed in channel status bit 1 (audio ), which is extracted rcbl out vlrck c, u output rcbl and c output are only available in hardware mode 5. rcbl goes high 2 frames after receipt of a z pre-amble, and is high for 16 frames. vlrck is a virtual word clock, which may not exist, but is used to illustrate the cu timing. vlrck duty cycle is 50%. vlrck frequency is always equal to the incoming frame rate. if no src is used, and the serial audio output port is in master mode, vlrck = olrck. if the serial audio output port is in slave mode, then vlrck needs to be externally created, if required. c, u transitions are ali g ned within 1% of vlrck period to vlrck ed g es figure 21. aes3 receiver timing for c & u pin output data
CS8420 ds245pp2 23 automatically by the CS8420. however, certain non-audio sources, such as ac3 or mpeg encod- ers, may not adhere to this convention, and the bit may not be properly set. the CS8420 aes3 receiv- er can detect such non-audio data. this is accom- plished by looking for a 96-bit sync code, consisting of 0x0000, 0x0000, 0x0000, 0x0000, 0xf872, and 0x4e1f. when the sync code is de- tected, an internal autodetect signal will be asserted. if no additional sync codes are detected within the next 4096 frames, autodetect will be de-asserted until another sync code is detected. the audio bit in the receiver channel status reg- ister is the logical or of autodetect and the received channel status bit 1. if non-audio data is detected, the data is still processed exactly as if it were normal audio. it is up to the user to mute the outputs as required. 9.5 aes3 transmitter the aes3 transmitter encodes and transmits audio and digital data according to the aes3, iec60958 (s/pdif), and eiaj cp-1201 interface standards. audio and control data are multiplexed together and bi-phase mark encoded. the resulting bit stream is then driven directly, or through a trans- former, to an output connector. the transmitter is usually clocked from the output side clock domain of the sample rate converter. this clock may be derived from the clock input pin omck, or from the incoming data. in data flows with no src, and where omck is asynchronous to the data source, an interrupt bit is provided that will go high every time a data sample is dropped or re- peated. the channel status (c) and user channel (u) bits in the transmitted data stream are taken from storage areas within the CS8420. the user can manipulate the contents of the internal storage with a micro- controller. the CS8420 will also run in one of sev- eral automatic modes. the appendix: channel sta- tus and user data buffer management (page 72) provides detailed descriptions of each automatic mode, and describes methods for accessing the storage areas. the transmitted user data can option- ally be input via the u pin, under the control of a control port register bit. figure 22 shows the timing requirements for inputting u data via the u pin. 9.5.1 transmitted frame and channel status boundary timing the tcbl pin may be an input or an output, and is used to control or indicate the start of transmitted channel status block boundaries. in some applications, it may be necessary to control the precise timing of the transmitted aes3 frame boundaries. this may be achieved in 3 ways: a) with tcbl configured as an input, when tcbl transitions high for >3 omck clocks, it will cause a frame start, and a new channel status block start. b) if the aes3 output comes from the aes3 input, while there is no src, setting tcbl as output will cause aes3 output frame boundaries to align with aes3 input frame boundaries. c) if the aes3 output comes from the serial audio input port while the port is in slave mode, and tcbl is set to output, then the start of the a chan- nel sub-frame will be aligned with the leading edge of ilrck. 9.5.2 txn and txp drivers the line drivers are low skew, low impedance, dif- ferential outputs capable of driving cables directly. both drivers are set to ground during reset (rst = low), when no aes3 transmit clock is provided, and optionally under the control of a register bit. the CS8420 also allows immediate mute of the aes3 transmitter audio data via a control register bit. external components are used to terminate and iso- late the external cable from the CS8420. these components are detailed in the appendix external
CS8420 24 ds245pp2 aes/spdif/iec60958 transmitter and receiver components on page 70. 9.6 mono mode operation currently, the aes3 standard is being updated to include options for 96 khz sample rate operation. one method is to double the frame rate of the cur- rent format. this results in a 96 khz sample rate, stereo signal carried over a single twisted pair ca- ble. an alternate method is where the 2 sub-frames in a 48 khz frame rate aes3 signal are used to car- ry consecutive samples of a mono signal, resulting in a 96 khz sample rate stream. this allows older equipment, whose aes3 transmitters and receivers are not rated for 96 khz frame rate operation, to handle 96 khz sample rate information. in this mono mode, 2 aes3 cables are needed for stereo data transfer. the CS8420 offers mono mode oper- ation, both for the aes3 receiver and for the aes3 transmitter. figure 23 shows the operation of mono mode in comparison with normal stereo mode. the receiver and transmitter sections may be indepen- dently set to mono mode via the mmr and mmt control bits. the receiver mono mode effectively doubles fsi compared to the input frame rate. the clock output on the rmck pin tracks fsi, and so is doubled in frequency compared to stereo mode. in mono mode, a and b sub-frames are routed to the src inputs as consecutive samples. when the transmitter is in mono mode, either a or b src consecutive outputs are routed alternately to a and b sub-frames in the aes3 output stream. which channel status block is transmitted is also selectable. for the aes3 input to serial audio port output data flow, in receiver mono mode, then the receiver will tcbl in or out vlrck tsetup = >7.5% aes3 frame time thold = 0 aes3 transmitter in stereo mode tsetup = >15% aes3 frame time thold = 0 aes3 transmitter in mono mode tcbl in or out vlrck u input u tsetup thold u cuv cuv cuv cuv c, u, v input tsetup thold vlrck is a virtual word clock, which may not exist, but is used to illustrate the cuv timing. vlrck duty cycle is 50%. in stereo mode, vlrck = aes3 frame rate. in mono mode, vlrck = 2*aes3 frame rate if the serial audio output port is in master mode, and tcbl is an output, and the src is not in use, then vlrck = olrck. if the serial audio input port is in master mode, and tcbl is an input, and the src is not between the serial audio input port and the aes3 transmitter, then vlrck = ilrck. otherwise, vlrck needs to be externall y created, if re q uired figure 22. aes3 transmitter timing for c, u and v pin input data
CS8420 ds245pp2 25 run at a frame rate of fsi/2, and the serial audio out- put port will run at fsi. identical data will appear in both left and right data fields on the sdout pin. for the serial audio input port to aes3 transmitter data flow, in transmitter mono mode, then the input port will run at fso audio sample rate, while the aes3 transmitter frame rate will be at fso/2. the data from either consecutive left, or right, positions will be selected for transmitting in a and b sub- frames. src aes3 receiver aes3 transmitter pll in out aa aa bb bb 96khz stereo 96khz frame rate 256x96khz 96khz stereo 96khz frame rate 96khz fsi 96khz fso omck (256, 384, or 512x 96khz) src aes3 receiver aes3 transmitter pll (x2) in out aa aa bb bb 96khz mono 48khz frame rate 256x96khz 96khz mono 48khz frame rate 96khz fsi 96khz fso omck (256, 384, or 512x 96khz) * + a & b sub-frames data are time-multiplexed into consecutive samples consecutive samples are alternately route d toa&bsub-fames *+ receiver mono mode re c eiver stereo mode mmtlr tran s mitter stereo mode transmitter mono mode a1 b1 outgoing aes3 src aout src bout a1 b1 a2 b2 stereo mono frame a2 b2 outgoing aes3 a selected outgoing aes3 b selected a1 a2 b1 b2 frame tran s mitter timin g figure 23. mono mode operation compared to normal stereo operation a1 b1 a2 b2 incoming aes3 src ain src bin ain & bin src a1 a1 b1 b1 a2 b2 a2 b2 stereo mono frame receiver timing
CS8420 26 ds245pp2 10. control port description and timing the control port is used to access the registers, al- lowing the CS8420 to be configured for the desired operational modes and formats. in addition, chan- nel status and user data may be read and written via the control port. the operation of the control port may be completely asynchronous with respect to the audio sample rates. however, to avoid poten- tial interference problems, the control port pins should remain static if no operation is required. the control port has 2 modes: spi and i 2 c, with the CS8420 acting as a slave device. spi mode is se- lected if there is a high to low transition on the ad0/cs pin, after the rst pin has been brought high. i 2 c mode is selected by connecting the ad0/cs pin to vd+ or dgnd, thereby perma- nently selecting the desired ad0 bit address state. 10.1 spi mode in spi mode, cs is the CS8420 chip select signal, cclk is the control port bit clock (input into the CS8420 from the microcontroller), cdin is the in- put data line from the microcontroller, cdout is the output data line to the microcontroller. data is clocked in on the rising edge of cclk and out on the falling edge. figure 24 shows the operation of the control port in spi mode. to write to a register, bring cs low. the first 7 bits on cdin form the chip address and must be 0010000. the eighth bit is a read/write indicator (r/w ), which should be low to write. the next 8 bits form the memory address pointer (map), which is set to the address of the register that is to be updated. the next 8 bits are the data which will be placed into the register designated by the map. during writes, the cdout output stays in the hi- z state. it may be externally pulled high or low with a 47 k w resistor, if desired. there is a map auto increment capability, enabled by the incr bit in the map register. if incr is a zero, then the map will stay constant for succes- sive read or writes. if incr is set to a 1, then the map will auto-increment after each byte is read or written, allowing block reads or writes of succes- sive registers. to read a register, the map has to be set to the cor- rect address by executing a partial write cycle which finishes (cs high) immediately after the map byte. the map auto increment bit (incr) map msb lsb data byte 1 byte n r/w r/w address chip address chip cdin cclk cs cdout msb lsb msb lsb 0010000 0010000 map = memory address pointer, 8 bits, msb first high impedance figure 24. control port timing in spi mode
CS8420 ds245pp2 27 may be set or not, as desired. to begin a read, bring cs low, send out the chip address and set the read/write bit (r/w ) high. the next falling edge of cclk will clock out the msb of the addressed register (cdout will leave the high impedance state). if the map auto increment bit is set to 1, the data for successive registers will appear consecu- tively. 10.2 i 2 c mode in i 2 c mode, sda is a bidirectional data line. data is clocked into and out of the part by the clock, scl, with the clock to data relationship as shown in figure 25. there is no cs pin. each individual CS8420 is given a unique address. pins ad0, ad1 form the 2 least significant bits of the chip address, and should be connected to vd+ or dgnd as de- sired. the emph pin is used to set the ad2 bit, by connecting a resistor from the emph pin to vd+ or to dgnd. the state of the pin is sensed while the CS8420 is being reset. the upper 4 bits of the 7-bit address field are fixed at 0010. to communi- cate with a CS8420, the chip address field, which is the first byte sent to the CS8420, should match 0010 followed by the settings of the emph , ad1, and ad0. the eighth bit of the address is the r/w bit. if the operation is a write, the next byte is the memory address pointer (map) which selects the register to be read or written. if the operation is a read, the contents of the register pointed to by the map will be output. setting the auto increment bit in map allows successive reads or writes of con- secutive registers. each byte is separated by an ac- knowledge bit. the ack bit is output from the CS8420 after each input byte is read, and is input to the CS8420 from the microcontroller after each transmitted byte. i 2 c is a registered trademark of philips semiconductors. 10.3 interrupts the CS8420 has a comprehensive interrupt capa- bility. the int output pin is intended to drive the interrupt input pin on the host microcontroller. the int pin may be set to be active low, active high or active low with no active pull-up transistor. this last mode is used for active low, wired-or hook- ups, with multiple peripherals connected to the mi- crocontroller interrupt input pin. many conditions can cause an interrupt, as listed in the interrupt status register descriptions. each source may be masked off via mask registers. in ad- dition, each source may be set to rising edge, fall- ing edge or level sensitive. combined with the option of level sensitive or edge sensitive modes within the microcontroller, many different set-ups are possible, depending on the needs of the equip- ment designer. sda scl 0010 ad2-0 r/w start ack data7-0 ack data7-0 ack stop note 2 note 1 note 1: ad2 is derived from a resistor attached to the emph pin, note 2: if operation is a write, this byte contains the memory address pointer, map ad1 and ad0 are determined by the state of the corresponding pins figure 25. control port timing in i 2 c mode
CS8420 28 ds245pp2 11. control port register bit definitions 11.1 memory address pointer (map) this register defaults to 01 incr auto increment address control bit 0 - auto increment address off 1 - auto increment address on map6-map0 register address and function list 0 - reserved 1 - misc. control 1 2 - misc. control 2 3 - data flow control 4 - clock source control 5 - serial audio input port data format 6 - serial audio output port data format 7 - interrupt register 1 status 8 - interrupt register 2 status 9 - interrupt register 1 mask 10 - interrupt register1 mode (msb) 11 - interrupt register 1 mode (lsb) 12 - interrupt register 2 mask 13 - interrupt register 2 mode (msb) 14 - interrupt register 2 mode (lsb) 15 - receiver channel status bits 16 - receiver error status 17 - receiver error mask 18 - channel status data buffer control 19 - user data buffer control 20 to 29 - q-channel subcode bytes 0 to 9 30 - sample rate ratio 31 - reserved 32 to 55 - c-bit or u-bit data buffer 56 to 126 - reserved 127 - chip id and version register reserved registers must not be written to during normal operation. some reserved registers are used for test modes, which can completely alter the normal operation of the CS8420. 7 6 543210 incr map6 map5 map4 map3 map2 map1 map0
CS8420 ds245pp2 29 addr function 7 6 5 4 3 2 1 0 1control 1 swclk vset mutesao muteaes dith int1 int0 tcbld 2control 2 trunc hold1 hold0 rmckf mmr mmt mmtcs mmtlr 3 data flow control amll txoff aesbp txd1 txd0 spd1 spd0 srcd 4 clock source control 0 run clk1 clk0 outc inc rxd1 rxd0 5 serial input format sims sisf sires1 sires0 sijust sidel sispol silrpol 6 serial output format soms sosf sores1 sores0 sojust sodel sospol solrpol 7 interrupt 1 status tslip oslip sre ovrgl ovrgr detc eftc rerr 8 interrupt 2 status 0 0 vfifo reunlock detu eftu qch uovw 9 interrupt 1 mask tslipm oslipm srem ovrglm ovrgrm detcm eftcm rerrm 10 interrupt 1 mode (msb) tslip1 oslip1 sre1 ovrgl1 ovrgr1 detc1 eftc1 rerr1 11 interrupt 1 mode (lsb) tslip0 oslip0 sre0 ovrgl0 ovrgr0 detc0 eftc0 rerr0 12 interrupt 2 mask 0 0 vfifom reunlockm detum eftum qchm uovwm 13 interrupt 2 mode (msb) 0 0 vfifo1 reunlock1 detu1 eftu1 qch1 uovw1 14 interrupt 2 mode (lsb) 0 0 vfifo0 reunlock0 detu0 eftu0 qch0 uovw0 15 receiver cs data aux3 aux2 aux1 aux0 pro audio copy orig 16 receiver errors 0 qcrc ccrc unlock v conf bip par 17 receiver error mask 0 qcrcm ccrcm unlockm vm confm bipm parm 18 cs data buffer control 0 0 bsel cbmr detci eftci cam chs 19 u data buffer control 0 0 0 ud ubm1 ubm0 detui eftui 20-29 q sub-code data 30 sample rate ratio srr7 srr6 srr5 srr4 srr3 srr2 srr1 srr0 32-55 c or u data buffer 127 id and version id3 id2 id1 id0 ver3 ver2 ver1 ver0 table 2. summary of all bits in the control register map
CS8420 30 ds245pp2 11.2 miscellaneous control 1 (1) swclk controls the output of omck on the rmck pin in the absence of input to the receiver 0 - rmck default function 1 - omck is switched to output through rmck in the absence of input to the receiver vset transmitted v bit level 0 - transmit a 0 for the v bit, indicating that the data is valid, and is normally linear pcm audio (default) 1 - transmit a 1 for the v bit, indicating that the data is invalid or is not linear pcm audio data mutesao mute control for the serial audio output port 0 - normal output (default) 1 - mute the serial audio output port muteaes mute control for the aes3 transmitter output 0 - normal output (default) 1 - mute the aes3 transmitter output dith dither control 0 - triangular pdf dither applied to output data. the level of the dither is automatically adjusted to be appropriate for the output word length selected by the sores bits (default) 1 - no dither applied to output data. int1-int0 interrupt (int) output pin control 00 - active high, high output indicates an interrupt condition has occurred (default) 01 - active low, low output indicates an interrupt condition has occurred 10 - open drain, active low. this setting requires an external pull up resistor on the int pin. 11 - reserved tcbld transmit channel status block pin (tcbl) direction specifier 0 - tcbl is an input (default) 1 - tcbl is an output 7 6 543210 swclk vset mutesao muteaes dith int1 int0 tcbld
CS8420 ds245pp2 31 11.3 miscellaneous control 2 (2) trunc determines whether the word length is set according to the incoming channel status data 0 - data to the src is not truncated (default) 1 - data to the src is set according to the aux field in the incoming data stream hold1-0the hold bits determine how the received audio sample is affected when a receiver error occurs. 00 - hold the last valid audio sample (default) 01 - replace the current audio sample with 00 (mute) 10 - do not change the received audio sample 11 - reserved rmckfselect recovered master clock output pin frequency. 0 - rmck is equal to 256 * fsi (default) 1 - rmck is equal to 128 * fsi mmr select aes3 receiver mono or stereo operation 0 - interpret a and b subframes as two independent channels (normal stereo operation, default) 1 - interpret a and b subframes as consecutive samples of one channel of data. this data is duplicated to both left and right parallel outputs of the aes receiver block. the input sample rate (fsi) is doubled compared to mmr=0 mmt select aes3 transmitter mono or stereo operation 0 - outputs left channel input into a subframe and right channel input into b subframe (normal stereo operation, default). 1 - output either left or right channel inputs into consecutive subframe outputs (mono mode, left or right is determined by mmtlr bit) mmtcs select a or b channel status data to transmit in mono mode 0 - use channel a cs data for the a sub-frame slot and use channel b cs data for the b sub-frame slot (default) 1 - use the same cs data for both the a and b sub-frame output slots. if mmtlr = 0, use the left channel cs data. if mmtlr = 1, use the right channel cs data. mmtlr channel selection for aes transmitter mono mode 0 - use left channel input data for consecutive sub-frame outputs (default) 1- use right channel input data for consecutive sub-frame outputs 7 6 543210 trunc hold1 hold0 rmckf mmr mmt mmtcs mmtlr
CS8420 32 ds245pp2 11.4 data flow control (3) the data flow control register configures the flow of audio data to/from the following blocks: serial audio input port, serial audio output port, aes3 receiver, aes3 transmitter, and sample rate con- verter. in conjunction with the clock source control register, multiple receiver/transmitter/trans- ceiver modes may be selected. the output data should be muted prior to changing bits in this register to avoid transients. amll auto mutes the src data sink when receiver lock is lost, zero data is transmitted. the src data sink may be either, or both, the transmitter and the serial audio output port. 0 - disables auto mute on loss of lock (default) 1 - enables auto mute on loss of lock txoff aes3 transmitter output driver control 0 - aes3 transmitter output pin drivers normal operation (default) 1 - aes3 transmitter output pin drivers drive to 0v. aesbp aes3 bypass mode selection 0 - normal operation 1 - connect the aes3 transmitter driver input directly to the rxp pin, which become a normal ttl threshold digital input. txd1 - txd0 aes3 transmitter data source 00 - src output (default) 01 - serial audio input port 10 - aes3 receiver 11 - reserved spd1 - spd0 serial audio output port data source 00 - src output (default) 01 - serial audio input port 10 - aes3 receiver 11 - reserved srcd input data source for src 0 - serial audio input port (default) 1 - aes3 receiver 7 6 543210 amll txoff aesbp txd1 txd0 spd1 spd0 srcd
CS8420 ds245pp2 33 11.5 clock source control (4) this register configures the clock sources of various blocks. in conjunction with the data flow control register, various receiver/transmitter/transceiver modes may be selected. run the run bit controls the internal clocks, allowing the CS8420 to be placed in a powered down, low current consumption, state. 0 - internal clocks are stopped. internal state machines are reset. the fully static control port is operational, allowing registers to be read or changed. reading and writing the u and c data buffers is not possible. power consumption is low (default). 1 - normal part operation. this bit must be written to the 1 state to allow the CS8420 to begin operation. all input clocks should be stable in frequency and phase when run is set to 1. clk1-0 output side master clock input (omck) frequency to output sample rate (fso) ratio selector. if these bits are changed during normal operation, then always stop the CS8420 first (run = 0), then write the new value, then start the CS8420 (run = 1). 00 - omck frequency is 256*fso(default) 01 - omck frequency is 384*fso 10 - omck frequency is 512*fso 11 - reserved outc output time base 0 - omck input pin (modified by the selected divide ratio bits clk1 & clk0, default) 1 - recovered input clock inc input time base clock source 0 - recovered input clock (default) 1 - omck input pin (modified by the selected divide ratio bits clk1 & clk0) rxd1-0 recovered input clock source 00 - 256*fsi, where fsi is derived from the ilrck pin (only possible when the serial audio input port is in slave mode, default) 01 - 256*fsi, where fsi is derived from the aes3 input frame rate 10 - bypass the pll and apply an external 256*fsi clock via the rmck pin. the aes3 receiver is held in synchronous reset. this setting is useful to prevent unlock interrupts when using an external rmck and inputting data via the serial audio input port. 11 - reserved 7 6 543210 0 run clk1 clk0 outc inc rxd1 rxd0
CS8420 34 ds245pp2 11.6 serial audio input port data format (5) sims master/slave mode selector 0 - serial audio input port is in slave mode (default) 1 - serial audio input port is in master mode sisf isclk frequency (for master mode) 0 - 64*fsi (default) 1 - 128*fsi sires1-0 resolution of the input data, for right-justified formats 00 - 24 bit resolution (default) 01 - 20 bit resolution 10 - 16 bit resolution 11 - reserved sijust justification of sdin data relative to ilrck 0 - left-justified (default) 1 - right-justified sidel delay of sdin data relative to ilrck, for left-justified data formats 0 - msb of sdin data occurs in the first isclk period after the ilrck edge (default) 1 - msb of sdin data occurs in the second isclk period after the ilrck edge sispol isclk clock polarity 0 - sdin sampled on rising edges of isclk (default) 1 - sdin sampled on falling edges of isclk silrpol ilrck clock polarity 0 - sdin data is for the left channel when ilrck is high (default) 1 - sdin data is for the right channel when ilrck is high 7 6 543210 sims sisf sires1 sires0 sijust sidel sispol silrpol
CS8420 ds245pp2 35 11.7 serial audio output port data format (6) soms master/slave mode selector 0 - serial audio output port is in slave mode (default) 1 - serial audio output port is in master mode sosf osclk frequency (for master mode) 0 - 64*fso (default) 1 - 128*fso sores1-0 resolution of the output data on sdout and on the aes3 output 00 - 24 bit resolution (default) 01 - 20 bit resolution 10 - 16 bit resolution 11 - direct copy of the received nrz data from the aes3 receiver (including c, u, and v bits, the time slot normally occupied by the p bit is used to indicate the location of the block start, sdout pin only, serial audio output port clock must be derived from the aes3 receiver recovered clock) sojust justification of sdout data relative to olrck 0 - left-justified (default) 1 - right-justified (master mode only) sodel delay of sdout data relative to olrck, for left-justified data formats 0 - msb of sdout data occurs in the first osclk period after the olrck edge (default) 1 - msb of sdout data occurs in the second osclk period after the olrck edge sospol osclk clock polarity 0 - sdout transitions occur on falling edges of osclk (default) 1 - sdout transitions occur on rising edges of osclk solrpol olrck clock polarity 0 - sdout data is for the left channel when olrck is high (default) 1 - sdout data is for the right channel when olrck is high 7 6 543210 soms sosf sores1 sores0 sojust sodel sospol solrpol
CS8420 36 ds245pp2 11.8 interrupt 1 register status (7) (read only) for all bits in this register, a 1 means the associated interrupt condition has occurred at least once since the register was last read. a 0 means the associated interrupt condition has not occurred since the last reading of the register. reading the register resets all bits to 0, unless the interrupt mode is set to level and the interrupt source is still true. status bits that are masked off in the associated mask register will always be 0 in this register. this register defaults to 00. tslip aes3 transmitter source data slip interrupt. in data flows with no src, and where omck, which clocks the aes3 transmitter, is asynchronous to the data source, this bit will go high every time a data sample is dropped or repeated. also, when tcbl is an input, and when the src is not in use, this bit will go high on receipt of a new tcbl signal. oslip serial audio output port data slip interrupt. when the serial audio output port is in slave mode, and olrck is asynchronous to the port data source, this bit will go high every time a data sam- ple is dropped or repeated. also, when the src is used, and the src output goes to the output serial port configured in slave mode, this bit will indicate if the ratio of omck frequency to ol- rck frequency does not match what is set in the clk1 and clk0 bits. sre sample rate range exceeded indicator. occurs if fsi/fso or fso/fsi exceeds 3. ovrgl over-range indicator for left (a) channel src output. occurs on internal over-range for left channel data. note that the CS8420 automatically clips over-ranges to plus or minus full-scale. ovrgr over-range indicator for right (b) channel src output. occurs on internal over-range for right channel data. note that the CS8420 automatically clips over-ranges to plus or minus full-scale detc d to e c-buffer transfer interrupt. the source for this bit is true during the d to e buffer transfer in the c bit buffer management process. eftc e to f c-buffer transfer interrupt. the source for this bit is true during the e to f buffer transfer in the c bit buffer management process. rerr a receiver error has occurred. the receiver error register may be read to determine the nature of the error which caused the interrupt. 7 6 543210 tslip oslip sre ovrgl ovrgr detc eftc rerr
CS8420 ds245pp2 37 11.9 interrupt register 2 status (8) (read only) for all bits in this register, a 1 means the associated interrupt condition has occurred at least once since the register was last read. a 0 means the associated interrupt condition has not occurred since the last reading of the register. reading the register resets all bits to 0, unless the interrupt mode is set to level and the interrupt source is still true. status bits that are masked off in the associated mask register will always be 0 in this register. this register defaults to 00. vfifo varispeed fifo overflow indicator. occurs if the data buffer in the src overflows. this will oc- cur if the input sample rate slows too fast. reunlock sample rate converter unlock indicator. this interrupt occurs if the src is still tracking a chang- ing input or output sample rate. detu d to e u-buffer transfer interrupt. the source of this bit is true during the d to e buffer transfer in the u bit buffer management process (block mode only). eftu e to f u-buffer transfer interrupt. the source of this bit is true during the e to f buffer transfer in the u bit buffer management process (block mode only). qch a new block of q-subcode data is available for reading. the data must be completely read with- in 588 aes3 frames after the interrupt occurs to avoid corruption of the data by the next block. uovw u-bit fifo overwrite. this interrupt occurs on an overwrite in the u-bit fifo. 11.10 interrupt 1 register mask (9) the bits of this register serve as a mask for the interrupt 1 register. if a mask bit is set to 1, the error is considered unmasked, meaning that its occurrence will affect the int pin and the status register. if a mask bit is set to 0, the error is considered masked, meaning that its occurrence will not affect the int pin or the status register. the bit positions align with the corresponding bits in interrupt register 1. this register defaults to 00. 11.11 interrupt register 1 mode registers msb & lsb(10,11) the two interrupt mode registers form a 2-bit code for each interrupt register 1 function. this code determines whether the int pin is set active on the arrival of the interrupt condition, on the removal of the interrupt condition, or on the continuing occurrence of the interrupt condition. these registers default to 00. 00 - rising edge active 01 - falling edge active 10 - level active 11 - reserved 7 6 543210 0 0 vfifo reunlock detu eftu qch uovw 7 6 543210 tslipm oslipm srem ovrglm ovrgrm detcm eftcm rerrm 7 6 543210 tslip1 oslip1 sre1 ovrgl1 ovrgr1 detc1 eftc1 rerr1 tslip0 oslip0 sre0 ovrgl0 ovrgr0 detc0 eftc0 rerr0
CS8420 38 ds245pp2 11.12 interrupt 2 register mask (12) the bits of this register serve as a mask for the interrupt 2 register. if a mask bit is set to 1, the error is considered unmasked, meaning that its occurrence will affect the int pin and the status register. if a mask bit is set to 0, the error is considered masked, meaning that its occurrence will not affect the int pin or the status register. the bit positions align with the corresponding bits in interrupt register 2. this register defaults to 00. 11.13 interrupt register 2 mode registers msb & lsb(13,14) the two interrupt mode registers form a 2-bit code for each interrupt 2 register function. this code determines whether the int pin is set active on the arrival of the interrupt condition, on the removal of the interrupt condition, or on the continuing occurrence of the interrupt condition. these registers default to 00. 00 - rising edge active 01 - falling edge active 10 - level active 11 - reserved 7 6 543210 0 0 vfifom reunlockm detum eftum qchm uovwm 7 6 543210 0 0 vfifo1 reunlock1 detu1 eftu1 qch1 uovw1 0 0 vfifo0 reunlock0 detu0 eftu0 qch0 uovw0
CS8420 ds245pp2 39 11.14 receiver channel status (15) (read only) the bits in this register can be associated with either channel a or b of the received data. the desired channel is selected with the chs bit of the channel status data buffer control register. aux3-0 the aux3-0 bits indicate the width of the incoming auxiliary data field, as indicated by the in- coming channel status bits, decoded according to iec60958 and aes3. 0000 - auxiliary data is not present 0001 - auxiliary data is 1 bit long 0010 - auxiliary data is 2 bits long 0011 - auxiliary data is 3 bits long 0100 - auxiliary data is 4 bits long 0101 - auxiliary data is 5 bits long 0110 - auxiliary data is 6 bits long 0111 - auxiliary data is 7 bits long 1000 - auxiliary data is 8 bits long 1001 - 1111 reserved pro channel status block format indicator 0 - received channel status block is in consumer format 1 - received channel status block is in professional format audio audio indicator 0 - received data is linearly coded pcm audio 1 - received data is not linearly coded pcm audio copy scms copyright indicator 0 - copyright asserted 1 - copyright not asserted orig scms generation indicator. this is decoded from the category code and the l bit. 0 - received data is 1st generation or higher 1 - received data is original note: copy and orig will both be set to 1 if the incoming data is flagged as professional, or if the receiver is not in use. 7 6 543210 aux3 aux2 aux1 aux0 pro audio copy orig
CS8420 40 ds245pp2 11.15 receiver error (16) (read only) this register contains the aes3 receiver and pll status bits. unmasked bits will go high on occur- rence of the error, and will stay high until the register is read. reading the register resets all bits to 0, unless the error source is still true. bits that are masked off in the receiver error mask register will always be 0 in this register. this register defaults to 00. qcrcq-subcode data crc error has occurred. updated on q-subcode block boundaries. 0 - no error 1 - error ccrcchannel status block cyclic redundancy check bit. updated on cs block boundaries. this bit is valid in professional mode only. 0 - no error 1 - error unlock pll lock status bit. updated on cs block boundaries. 0 - pll locked 1 - pll out of lock v received aes3 validity bit status. updated on sub-frame boundaries. 0 - data is valid and is normally linear coded pcm audio 1 - data is invalid, or may be valid compressed audio conf confidence bit. updated on sub-frame boundaries. 0 - no error 1 - confidence error. this indicates that the received data eye opening is less than half a bit period, indicating a poor link that is not meeting specifications. bip bi-phase error bit. updated on sub-frame boundaries. 0 - no error 1 - bi-phase error. this indicates an error in the received bi-phase coding. par parity bit. updated on sub-frame boundaries. 0 - no error 1 - parity error 11.16 receiver error mask (17) the bits in this register serve as masks for the corresponding bits of the receiver error register. if a mask bit is set to 1, the error is considered unmasked, meaning that its occurrence will appear in the receiver error register, will affect the rerr pin, will affect the rerr interrupt, and will affect the cur- rent audio sample according to the status of the hold bit. if a mask bit is set to 0, the error is con- sidered masked, meaning that its occurrence will not appear in the receiver error register, will not affect the rerr pin, will not affect the rerr interrupt, and will not affect the current audio sample. the ccrc and qcrc bits behave differently from the other bits: they do not affect the current audio sample even when unmasked. this register defaults to 00. 7 6 543210 0 qcrc ccrc unlock v conf bip par 7 6 543210 0 qcrcm ccrcm unlockm vm confm bipm parm
CS8420 ds245pp2 41 11.17 channel status data buffer control (18) bsel selects the data buffer register addresses to contain user data or channel status data 0 - data buffer address space contains channel status data (default) 1 - data buffer address space contains user data cbmr control for the first 5 bytes of channel status e buffer 0 - allow d to e buffer transfers to overwrite the first 5 bytes of channel status data (default) 1 - prevent d to e buffer transfers from overwriting first 5 bytes of channel status data detci d to e c-data buffer transfer inhibit bit. 0 - allow c-data d to e buffer transfers (default) 1 - inhibit c-data d to e buffer transfers eftci e to f c-data buffer transfer inhibit bit. 0 - allow c-data e to f buffer transfers (default) 1 - inhibit c-data e to f buffer transfers cam c-data buffer control port access mode bit 0 - one byte mode 1 - two byte mode chs channel select bit 0 - channel a information is displayed at the emph pin and in the receiver channel status register. channel a information is output during control port reads when cam is set to 0 (one byte mode) 1 - channel b information is displayed at the emph pin and in the receiver channel status register. channel b information is output during control port reads when cam is set to 0 (one byte mode) 7 6 543210 0 0 bsel cbmr detci eftci cam chs
CS8420 42 ds245pp2 11.18 user data buffer control (19) ud user data pin (u) direction specifier 0 - the u pin is an input. the u data is latched in on both rising and falling edges of olrck. this setting also chooses the u pin as the source for transmitted u data (default). 1 - the u pin is an output. the received u data is clocked out on both rising and falling edges of ilrck. this setting also chooses the u data buffer as the source of transmitted u data. ubm1-0 sets the operating mode of the aes3 u bit manager 00 - transmit all zeros mode (default) 01 - block mode 10 - reserved 11 - iec consumer mode 4 detui d to e u-data buffer transfer inhibit bit (valid in block mode only). 0 - allow u-data d to e buffer transfers (default) 1 - inhibit u-data d to e buffer transfers eftui e to f u-data buffer transfer inhibit bit (valid in block mode only). 0 - allow u-data e to f buffer transfers (default) 1 - inhibit u-data e to f buffer transfer 11.19 q-channel subcode bytes 0 to 9 (20 - 29) (read only) the following 10 registers contain the decoded q-channel subcode data 7 6 543210 0 0 0 ud ubm1 ubm0 detui eftui 7 6 543210 address address address address control control control control track track track track track track track track index index index index index index index index minute minute minute minute minute minute minute minute second second second second second second second second frame frame frame frame frame frame frame frame zero zero zero zero zero zero zero zero abs minute abs minute abs minute abs minute abs minute abs minute abs minute abs minute abs second abs second abs second abs second abs second abs second abs second abs second abs frame abs frame abs frame abs frame abs frame abs frame abs frame abs frame
CS8420 ds245pp2 43 11.20 sample rate ratio (30) (read only) the sample rate ratio is fso divided by fsi. this value is represented as an integer and a fractional part. the value is meaningful only after the both the pll and src have reached lock, and the src output is being used srr7-6the integer part of the sample rate ratio srr5-0 the fractional part of the sample rate ratio 11.21 c-bit or u-bit data buffer (32 - 55) either channel status data buffer e or user data buffer e (provided ubm bits are set to block mode) is accessible via these register addresses. 11.22 CS8420 i.d. and version register (127) (read only) id3-0 id code for the CS8420. permanently set to 0001 ver3-0 CS8420 revision level. revision b is coded as 0001, revision c is coded as 0011, revision d is coded as 0100 7 6 543210 srr7 srr6 srr5 srr4 srr3 srr2 srr1 srr0 7 6 54321id3 id3 id2 id1 id0 ver3 ver2 ver1 ver0
CS8420 44 ds245pp2 12. system and applications issues 12.1 reset, power down and start-up options when rst is low, the CS8420 enters a low power mode and all internal states are reset, including the control port and registers, and the outputs are mut- ed. when rst is high, the control port becomes operational and the desired settings should be load- ed into the control registers. writing a 1 to the run bit will then cause the part to leave the low power state and begin operation. after the pll and the src have settled, the aes3 and serial audio out- puts will be enabled. some options within the CS8420 are controlled by a start-up mechanism. during the reset state, some of the output pins are reconfigured internally to be inputs. immediately upon exiting the reset state, the level of these pins is sensed. the pins are then switched to be outputs. this mechanism allows output pins to be used to set alternative modes in the CS8420 by connecting a 47k w resistor to be- tween the pin and either vd+ (hi) or dgnd (lo). for each mode, every start-up option select pin must have an external pull-up or pull-down resis- tor. in software mode, the only start-up option pin is emph , which is used to set a chip address bit for the control port in i 2 c mode. hardware modes use many start-up options, which are detailed in the hardware definition section at the end of this data sheet. 12.2 id code and revision code the CS8420 has a register that contains a 4-bit code to indicate that the addressed device is a CS8420. this is useful when other cs84xx family members are resident in the same system, allowing common software modules. the CS8420 4-bit revision code is also available. this allows the software driver for the CS8420 to identify which revision of the device is in a partic- ular system, and modify its behavior accordingly. to allow for future revisions, it is strongly recom- mend that the revision code is read into a variable area within the microcontroller, and used wherever appropriate as revision details become known. 12.3 power supply, grounding, and pcb layout for most applications, the CS8420 can be operated from a single +5v supply, following normal supply decoupling practice (see figure 5. recommended connection diagram for software mode on page 10). for applications where the recovered input clock, output on the rmck pin, is required to be low jitter, then use a separate, quiet, analog +5v supply for va+, decoupled to agnd. in addition, a separate region of analog ground plane around the filt, agnd, va+, rxp and rxn pins is recom- mended. the vd+ supply should be well decoupled with a 0.1 m f capacitor to dgnd to minimize aes3 trans- mitter induced transients. extensive use of power and ground planes, ground plane fill in unused areas and surface mount decou- pling capacitors are recommended. make sure de- coupling capacitors are mounted on the same side of the board as the CS8420, to minimize via induc- tance effects. all decoupling capacitors should be as close to the CS8420 as possible.
CS8420 ds245pp2 45 12.4 synchronization of multiple CS8420s the serial audio output ports of multiple CS8420s can be synchronized by sharing the same master clock, osclk, olrck, and rst line and ensur- ing that all devices leave the reset state on the same master clock falling edge. either all the ports need to be in slave mode, or one can be set as a master. the aes3 transmitters may be synchronized by sharing the same master clock, tcbl, and rst signals, and all devices leave the reset state on the same master clock falling edge. the tcbl pin is used to synchronize multiple CS8420 aes3 trans- mitters at the channel status block boundaries. one CS8420 must have its tcbl set to master; the oth- ers must be set to slave tcbl. alternatively, tcbl can be derived from some external logic, in which case all the CS8420 devices should be set to slave tcbl. 12.5 extended range sample rate conversion for handling sampling rate conversion ratios great- er than 3:1 or less than 1:3, the user can use a cas- cade of two devices. the product of the conversion ratio of the two devices should equal the target con- version ratio.
CS8420 46 ds245pp2 13. software mode - pin description the above diagram and the following pin descriptions apply to software mode. in hardware mode, some pins change their function as described in subsequent sections of this data sheet. fixed function pins are marked with a *, and will be described once in this section. pins marked with a + are used upon reset to select various start-up options, and require a pull-up or pull- down resistor. power supply connections: vd+ - positive digital power * positive supply for the digital section. nominally +5v. va+ - positive analog power * positive supply for the analog section. nominally +5v. this supply should be as quiet as possible since noise on this pin will directly affect the jitter performance of the recovered clock. dgnd - digital ground * ground for the digital section. dgnd should be connected to the same ground as agnd. agnd - analog ground * ground for the analog section. agnd should be connected to the same ground as dgnd. clock related pins: omck - output section master clock input output section master clock input. the frequency must be 256x, 384x, or 512x the output sample rate (fso). rmck - input section recovered master clock output input section recovered master clock output. will be at a frequency of 128x or 256x the input sample rate (fsi). filt - pll loop filter * an rc network should be connected between this pin and ground. recommended schematic and component values are given in the receiver section of this data sheet.
CS8420 ds245pp2 47 overall device control: h/s - hardware or software control mode select * the h/s pin determines the method of controlling the operation of the CS8420, and the method of accessing cs and u data. in software mode, device control and cs and u data access is primarily via the control port, using a microcontroller. in hardware mode, alternate modes and access to cs and u data is provided by pins. this pin should be permanently tied to vd+ or dgnd. rst - reset input * when rst is low, the CS8420 enters a low power mode and all internal states are reset. on initial power up, rst must be held low until the power supply is stable, and all input clocks are stable in frequency and phase. this is particularly true in hardware mode with multiple CS8420 devices, where synchronization between devices is important. int - interrupt output the int output pin indicates errors and key events during the operation of the CS8420. all bits affecting int are maskable via control registers. the condition(s) that initiated interrupt are readable via a control register. the polarity of the int output, as well as selection of a standard or open drain output, is set via a control register. once set true, the int pin goes false only after the interrupt status registers have been read, and the interrupt status bits have returned to zero. audio input interface: sdin - serial audio input port data input audio data serial input pin. isclk - serial audio input port bit clock input or output serial bit clock for audio data on the sdin pin. ilrck - serial audio input port left/right clock input or output word rate clock for the audio data on the sdin pin. the frequency will be at the input sample rate (fsi) aes3/spdif receiver interface: rxp, rxn - differential line receiver inputs differential line receiver inputs, carrying aes3 type data. rerr - receiver error indicator when high, indicates a problem with the operation of the aes3 receiver. the status of this pin is updated once per sub-frame of incoming aes3 data. conditions that can cause rerr to go high are: validity, parity error, bi-phase coding error, confidence, qcrc and ccrc errors, as well as loss of lock in the pll. each condition may be optionally masked from affecting the rerr pin using the receiver error mask register. the rerr pin tracks the status of the unmasked errors: the pin goes high as soon as an unmasked error occurs and goes low immediately when all unmasked errors go away. emph - pre-emphasis indicator output emph is low when the incoming aes3 data indicates the presence of 50/15 m s pre-emphasis. when the aes3 data indicates the absence of pre-emphasis or the presence of other than 50/15 m s pre- emphasis emph is high. this is also a start-up option pin, and requires a 47 k w resistor to either vd+ or dgnd, which determines the ad2 address bit for the control port in i 2 c mode. audio output interface: sdout - serial audio output port data output audio data serial output pin.
CS8420 48 ds245pp2 osclk - serial audio output port bit clock input or output serial bit clock for audio data on the sdout pin. olrck - serial audio output port left/right clock input or output word rate clock for the audio data on the sdout pin. the frequency will be at the output sample rate (fso) aes3/spdif transmitter interface: tcbl - transmit channel status block start this pin can be configured as an input or output. when operated as output, tcbl is high during the first sub-frame of a transmitted channel status block, and low at all other times. when operated as input, driving tcbl high for at least three omck (or rmck, depending on which clock is operating the aes3 encoder block) clocks will cause the next transmitted sub-frame to be the start of a channel status block. txn, txp - differential line driver outputs differential line driver outputs, transmitting aes3 type data. drivers are pulled to low while the CS8420 is in the reset state. control port signals: scl/cclk - control port clock scl/cclk is the serial control interface clock, and is used to clock control data bits into and out of the CS8420. ad0/cs - address bit 0 (i 2 c) / control port chip select (spi) a falling edge on this pin puts the CS8420 into spi control port mode. with no falling edge, the CS8420 defaults to i 2 c mode. in i 2 c mode, ad0 is a chip address pin. in spi mode, cs is used to enable the control port interface on the CS8420. ad1/cdin - address bit 1 (i 2 c) / serial control data in (spi) in i 2 c mode, ad1 is a chip address pin. in spi mode, cdin is the input data line for the control port interface sda/cdout - serial control data i/o (i 2 c) / data out (spi) in i 2 c mode, sda is the control i/o data line. sda is open drain, and requires an external pull-up resistor to vd+. in spi mode, cdout is the output data from the control port interface on the CS8420. miscellaneous pins: u - user data the u pin may optionally be used to input user data for transmission by the aes3 transmitter, see figure 22 for timing information. alternatively, the u pin may be set to output user data from the aes3 receiver, see figure 21 for timing information. if not driven, a 47k w pull-down resistor is recommended for the u pin, since the default state of the ud direction bit sets the u pin as an input. the pull-down resistor ensures that the transmitted user data will be zero. if the u pin is always set to be an output, thereby causing the u bit manager to be the source of the u data, then the resistor is not necessary. the u pin should not be tied directly to ground, in case it is programmed to be an output, and subsequently tries to output a logic high. this situation may affect the long term reliability of the device. if the u pin is driven by a logic level output, then a 100 w series resistor is recommended.
CS8420 ds245pp2 49 14. hardware modes 14.1 overall description the CS8420 has six hardware modes, which allow use of the device without using a micro-controller to access the device control registers and cs & u data. the flexibility of the CS8420 is necessarily limited in hardware mode. various pins change function in hardware mode, and various data paths are also possible. these alternatives are identified by hardware mode numbers 1 through 6. the fol- lowing sections describe the data flows and pin def- initions for each hardware mode. 14.1.1 hardware mode definitions hardware mode is selected by connecting the h/s pin to 1. in hardware mode, 3 pins (dfc0, dfc1 & s/aes ) determine the hardware mode number, according to table 3start-up options are used ex- tensively in hardware mode. options include whether the serial audio output ports are master or slave, the serial audio ports format and whether tcbl is an input or an output. which output pins are used to set which modes depends on which hardware mode is being used. 14.1.2 serial audio port formats in hardware mode, only a limited number of alter- native serial audio port formats are available. these formats are described by tables 4 & 5, which de- fine the equivalent software mode bit settings for each format. timing diagrams are shown in figures 16 and 17. for each hardware mode, the following pages con- tain a data flow diagram, a pin-out drawing, a pin descriptions list and a definition of the available start-up options. dfc1 dfc0 s/aes hardware mode number 0 0 0 1 - default data flow, aes3 input 0 0 1 2 - default data flow, serial input 0 1 - 3 - transceive flow, with src 1 0 - 4 - transceive flow, no src 1 1 0 5 - aes3 rx only, aes3 input 1 1 1 6 - aes3 tx only, serial input table 3. hardware mode definitions sosf sores1/0 sojust sodel sospol solrpol of1 - left justified 0 00 0 0 1 0 of2 - i 2 s 24-bit data 000 0 1 0 1 of3 - right justified, master mode only 000 1 0 0 0 of4 - i 2 s 16 bit data 010 0 1 0 1 of5 - direct aes3 data 0 11 0 0 1 0 table 4. serial audio output formats available in hardware mode sisf sires1/0 sijust sidel sispol silrpol if1 - left justified 0 00 0 0 1 0 if2 - i 2 s 000 0 1 0 1 if3 - right justified 24-bit data 000 1 0 0 0 if4 - right justified 16-bit data 010 1 0 0 0 table 5. serial audio input formats available in hardware mode
CS8420 50 ds245pp2 14.2 hardware mode 1 description (default data flow, aes3 input) hardware mode 1 data flow is shown in figure 26. audio data is input via the aes3 receiver, and rate converted. the audio data at the new rate is then output both via the serial audio output port and via the aes3 transmitter. the channel status data, user data and validity bit information are handled in 2 alternative modes: 1a and 1b, determined by a start-up resistor on the copy pin. in mode 1a, the received pro, copy, orig, emph , and audio channel status bits are output on pins. the transmitted channel status bits are copied from the received channel status data, and the transmitted u and v bits are 0. in mode 1b, only the copy and orig pins are output, and reflect the received channel status data. the transmitted channel status bits, user data and validity bits are input serially via the pro/c, em- ph /u and audio /v pins. figure 22 shows the timing requirements. start-up options are shown in table 6, and allow choice of the serial audio output port as a master or slave, choice of 4 serial audio output port formats, and the source for transmitted c, u and v data. the following pages contain the detailed pin descrip- tions for hardware mode 1. if a validity, parity, bi-phase or lock receiver error occurs, the current audio sample will be held. aes3 encoder &tx serial audio output aes3 rx & decoder sample rate converter c & u bit data buffer clocked by output clock clocked by input derived clock rxp rxn olrck osclk sdou t txp txn rmck rerr copy orig emph/u tcbld pro/c audio/v tcbl mute dfc0 dfc1 s/aes vd+ h/s o utput clock source omck power supply pins (vd+, va+, dgnd, agnd), the reset pin (rst) and the pll filter pin (filt) are omitted from this dia g ram. please refer to the typical connection dia g ram for hook-up details. figure 26. hardware mode 1 - default data flow, aes3 input sdout rmck rerr copy function lo - - - serial output port is slave hi - - - serial output port is master - - - lo mode1a: c transmitted data is copied from received data, u & v = 0, received pro, emph , audio are visible. - - - hi mode 1b: cuv transmitted data is input serially on pins, received pro, emph , audio are not visible - lo lo serial output format of1 - lo hi serial output format of2 - hi lo serial output format of3 - hi hi serial output format of4 table 6. hardware mode 1 start-up options
CS8420 ds245pp2 51 14.2.1 pin description - hardware mode 1 overall device control: dfc0, dfc1 - data flow control inputs dfc0 and dfc1 inputs determine the major data flow options available in hardware mode, according to table 3. s/aes - serial audio or aes3 input select s/aes is connected to ground in hardware mode 1, in order to select the aes3 input. mute - mute output data input if mute is low, audio data is passed normally. if mute is high, then both the aes3 transmitted audio data and the serial audio output port data is set to digital zero. omck - output section master clock input output section master clock input. the frequency must be 256x the output sample rate (fso). aes3/spdif receiver interface: rxp, rxn - differential line receiver inputs differential line receiver inputs, carrying aes3 type data. rmck - input section recovered master clock output input section recovered master clock output. will be at a frequency of 256x the input sample rate (fsi). this is also a start-up option pin, and requires a pull-up or pull-down resistor. rerr - receiver error indicator when high, indicates a problem with the operation of the aes3 receiver. the status of this pin is updated once per sub-frame of incoming aes3 data. conditions that cause rerr to go high are: parity error, and bi-phase coding error, as well as loss of lock in the pll. this is also a start-up option pin, and requires a pull-up or pull-down resistor. emph /u - pre-emphasis indicator output or u-bit data input the emph /u pin reflects either the state of the emph channel status bits in the incoming aes3 type data stream, or is the serial u-bit input for the aes3 type transmitted data, clocked by olrck. when indicating emphasis emph /u is low if the incoming data indicates 50/15 m s pre-emphasis and high otherwise.
CS8420 52 ds245pp2 copy - copy channel status bit output the copy pin reflects the state of the copy channel status bit in the incoming aes3 type data stream. this is also a start-up option pin, and requires a pull-up or pull-down resistor. orig - original channel status output scms generation indicator. this is decoded from the incoming category code and the l bit. a low output indicates that the audio data stream is 1st generation or higher. a high indicates that the audio data stream is original. pro/c - professional channel status bit output or c-bit data input the pro/c pin either reflects the state of the professional/consumer channel status bit in the incoming aes3 type data stream, or is the serial c-bit input for the aes3 type transmitted data, clocked by olrck. audio /v - audio channel status bit output or v-bit data input the audio /v pin either reflects the state of the audio/non audio channel status bit in the incoming aes3 type data stream, or is the v-bit data input for the aes3 type transmitted data stream, clocked by olrck. audio output interface: sdout - serial audio output port data output audio data serial output pin. this is also a start-up option pin, and requires a pull-up or pull-down resistor. osclk - serial audio output port bit clock input or output serial bit clock for audio data on the sdout pin. olrck - serial audio output port left/right clock input or output word rate clock for the audio data on the sdout pin. the frequency will be at the output sample rate (fso) aes3/spdif transmitter interface: tcbl - transmit channel status block start when operated as output, tcbl is high during the first sub-frame of a transmitted channel status block, and low at all other times. when operated as input, driving tcbl high for at least three omck clocks will cause the current transmitted sub-frame to be the start of a channel status block. tcbld - transmit channel status block direction input connect tcbld to vd+ to set tcbl as an output. connect tcbld to dgnd to set tcbl as an input. txn, txp - differential line driver outputs differential line driver outputs, transmitting aes3 type data. drivers are pulled to low while the CS8420 is in the reset state.
CS8420 ds245pp2 53 14.3 hardware mode 2 description (default data flow, serial input) hardware mode 2 data flow is shown in figure 27. audio data is input via the serial audio input port, and rate converted. the audio data at the new rate is then output both via the serial audio output port and via the aes3 transmitter. the c, u and v bits in the aes3 output stream may be set in 2 methods, selected by the cuven pin. when cuven is low, mode 2a is selected, where copy/c, orig/u and emph /v pins allow select- ed channel status data bits to be set. the copy and orig pins are used to set the pro bit, the copy bit and the l bit, as shown in table 7. in consumer mode, the transmitted category code shall be 0101100, which indicates sample rate converter. the transmitted u and v bits are 0. when the cuven pin is high, mode 2b is selected, where copy/c, orig/u and emph /v become serial bit inputs for c, u and v data. this data is clocked by both edges of olrck, and the channel status block start is indicated or determined by tcbl. figure 22 shows the timing requirements. audio serial port data formats are selected as shown in tables 8, 4, and 5. start-up options are shown in table 9, and allow choice of the serial audio output port as a master or slave and whether tcbl is an input or an output. the serial audio input port is always a slave. the following pages contain the detailed pin de- scriptions for hardware mode 2. copy/c orig/u function 00 pro=0, copy=0, l=0 01 pro=0, copy=0, l=1 10 pro=0, copy=1, l=0 11 pro=1 table 7. hw mode 2a copy/c and orig/u pin function aes3 encoder &tx serial audio output serial audio input sample rate converter c & u bit data buffer clocked by output clock clocked by input derived clock ilrck isclk olrck osclk sdou t txp txn rmck lock copy/c orig/u emph/v cuven tcbl dfc0 dfc1 s/aes vd+ h/s o utput clock source omck power supply pins (vd+, va+, dgnd, agnd) & the reset pin (rst) and the pll filter pin (filt) are omitted from this diagram. please refer to the typical connection diagram for hook-up details. vd+ sdin sfmt1 sfmt0 figure 27. hardware mode 2 - default data flow, serial audio input sfmt1 sfmt0 function 00 serial input & output format if1&of1 01 serial input & output format if2&of2 10 serial input & output format if3&of3 11 serial input & output format if4&of3 table 8. hw mode 2 serial audio port format selection sdout lock function lo - serial output port is slave hi - serial output port is master - lo tcbl is an input - hi tcbl is an output table 9. hardware mode 2 start-up options
CS8420 54 ds245pp2 14.3.1 pin description - hardware mode 2 overall device control: dfc0, dfc1 - data flow control inputs dfc0 and dfc1 inputs determine the major data flow options available in hardware mode, according to table 3. s/aes - serial audio or aes3 input select s/aes is connected to vd+ in hardware mode 2, in order to select the serial audio input. sfmt0, sfmt1 - serial audio port data format select inputs sfmt0 and sfmt1 select the serial audio input and output ports format. see table 8. omck - output section master clock input output section master clock input. the frequency must be 256x the output sample rate (fso). audio input interface: sdin - serial audio input port data input audio data serial input pin. isclk - serial audio input port bit clock input or output serial bit clock for audio data on the sdin pin. ilrck - serial audio input port left/right clock input or output word rate clock for the audio data on the sdin pin. the frequency will be at the input sample rate (fsi) rmck - input section recovered master clock output input section recovered master clock output. will be at a frequency of 256x the input sample rate (fsi). lock - pll lock indicator output lock low indicates that the pll is locked. this is also a start-up option pin, and requires a pull-up or pull-down resistor.
CS8420 ds245pp2 55 audio output interface: sdout - serial audio output port data output audio data serial output pin. this is also a start-up option pin, and requires a pull-up or pull-down resistor. osclk - serial audio output port bit clock input or output serial bit clock for audio data on the sdout pin. olrck - serial audio output port left/right clock input or output word rate clock for the audio data on the sdout pin. the frequency will be at the output sample rate (fso). aes3/spdif transmitter interface: txn, txp - differential line driver outputs differential line driver outputs, transmitting aes3 type data. drivers are pulled to low while the CS8420 is in the reset state. tcbl - transmit channel status block start when operated as output, tcbl is high during the first sub-frame of a transmitted channel status block, and low at all other times. when operated as input, driving tcbl high for at least three omck clocks will cause the current transmitted sub-frame to be the start of a channel status block. cuven - c, u and v bit input enable mode input the cuven pin determines how the channel status data, user data and validity bit is input. when cuven is low, hardware mode 2a is selected, where the emph /v, copy/c and orig/u pins are used to enter selected channel status data. when cuven is high, hardware 2b is selected, where the emph /v, copy/c and orig/u pins are used to enter serial c, u and v data. emph /v - pre-emphasis indicator input or v bit input in mode 2a emph /v low sets the 3 emph channel status bits to indicate 50/15 m s pre-emphasis. emph /v high sets the 3 emph bits to 000 indicating no pre-emphasis. in mode 2b emph /v low sets the v bit to indicate valid audio. emph /v high sets the v-bit to indicate non-valid audio. copy/c - copy channel status bit input or c bit input in mode 2a, the copy/c pin determines the state of the copy, pro and l channel status bits in the outgoing aes3 type data stream (see table 7). in mode 2b, copy/c becomes the direct c bit input data pin. orig/u - orig channel status bit input or u bit input in mode 2a, the orig/u pin determines the state of the copy, pro and l channel status bits in the outgoing aes3 type data stream. (see table 7). in mode 2b, orig/u becomes the direct u bit input data pin.
CS8420 56 ds245pp2 14.4 hardware mode 3 description (transceive data flow, with src) hardware mode 3 data flow is shown in figure 28. audio data is input via the aes3 receiver, and rate converted. the audio data at the new rate is then output via the serial audio output port. different au- dio data, synchronous to omck, may be input into the serial audio input port, and output via the aes3 transmitter. the channel status data, user data and validity bit information are handled in 2 alternative modes: 3a and 3b, determined by a start-up resistor on the copy pin. in mode 3a, the received pro, copy, orig, and audio channel status bits are output on pins. the transmitted channel status bits are copied from the received channel status data, and the transmitted u and v bits are 0. in mode 3b, only the copy and orig pins are output, and reflect the received channel status data. the transmitted channel status bits, user data and validity bits are input serially via the pro/c, em- ph /u and audio /v pins. figure 22 shows the timing requirements. the serial audio input port is always a slave. if a validity, parity, bi-phase or lock receiver error occurs, the current audio sample will be held. start-up options are shown in table 10, and allow choice of the serial audio output port as a master or slave, whether tcbl is an input or an output, the serial audio ports formats and the source of the transmitted c, u and v data. the following pages contain the detailed pin de- scriptions for hardware mode 3. aes3 encoder &tx serial audio output aes3 rx & decoder sample rate converter c&ubitdatabuffer clocked by output clock clocked by input derived clock rxp rxn olrck osclk sdout txp txn rmck rerr copy orig emph/u audio/v tcbl dfc0 dfc1 vd+ h/s output clock source omck power supply pins (vd+, va+, dgnd, agnd) & the reset pin (rst) and the pll filter pin (filt) are omitted from this dia g ram. please refer to the typical connection dia g ram for hook-up details. vd+ serial audio input ilrck isclk sdin pro/c figure 28. hardware mode 3 - transceive data flow, with src
CS8420 ds245pp2 57 sdout rmck rerr orig copy function lo - - - - serial output port is slave hi - - - - serial output port is master --- - lo mode 3a: c transmitted data is copied from received data, u & v =0, received pro, emph , audio is visible --- - hi mode 3b: cuv transmitted data is input serially on pins, received pro, emph and audio is not visible -lolo - - serial input & output format if1&of1 -lohi - - serial input & output format if2&of2 -hilo - - serial input & output format if3&of3 -hihi - - serial input & output format if2&of4 --- lo - tcbl is an input --- hi - tcbl is an output table 10. hardware mode 3 start-up options
CS8420 58 ds245pp2 14.4.1 pin description - hardware mode 3 overall device control: dfc0, dfc1 - data flow control inputs dfc0 and dfc1 inputs determine the major data flow options available in hardware mode, according to table 3. omck - output section master clock input output section master clock input. the frequency must be 256x the output sample rate (fso). audio input interface: sdin - serial audio input port data input audio data serial input pin. this data will be transmitted out the aes3 port. isclk - serial audio input port bit clock input serial bit clock for audio data on the sdin pin. ilrck - serial audio input port left/right clock input word rate clock for the audio data on the sdin pin. the frequency will be at the output sample rate (fso) audio output interface: sdout - serial audio output port data output audio data serial output pin. this is also a start-up option pin, and requires a pull-up or pull-down resistor. osclk - serial audio output port bit clock input or output serial bit clock for audio data on the sdout pin. olrck - serial audio output port left/right clock input or output word rate clock for the audio data on the sdout pin. the frequency will be at the output sample rate (fso).
CS8420 ds245pp2 59 aes3/spdif transmitter interface: txn, txp - differential line driver outputs differential line driver outputs, transmitting aes3 type data. drivers are pulled to low while the CS8420 is in the reset state. tcbl - transmit channel status block start when operated as output, tcbl is high during the first sub-frame of a transmitted channel status block, and low at all other times. when operated as input, driving tcbl high for at least three omck clocks will cause the current transmitted sub-frame to be the start of a channel status block. aes3/spdif receiver interface: rxp, rxn - differential line receiver inputs differential line receiver inputs, carrying aes3 type data. rmck - input section recovered master clock output input section recovered master clock output. will be at a frequency of 256x the input sample rate (fsi). this is also a start-up option pin, and requires a pull-up or pull-down resistor. rerr - receiver error indicator output when high, indicates a problem with the operation of the aes3 receiver. the status of this pin is updated once per sub-frame of incoming aes3 data. conditions that cause rerr to go high are: parity error, and bi-phase coding error, as well as loss of lock in the pll. this is also a start-up option pin, and requires a pull-up or pull-down resistor. emph /u - pre-emphasis indicator output or u-bit data input the emph /u pin either reflects the state of the emph channel status bits in the incoming aes3 type data stream, or is the serial u-bit input for the aes3 type transmitted data, clocked by olrck. if indicating emphasis emph /u is low when the incoming data indicates 50/15 m s pre-emphasis and high otherwise. copy - copy channel status bit output the copy pin reflects the state of the copy channel status bit in the incoming aes3 type data stream. this is also a start-up option pin, and requires a pull-up or pull-down resistor. orig - original channel status output scms generation indicator. this is decoded from the incoming category code and the l bit. a low output indicates that the audio data stream is 1st generation or higher. a high indicates that the audio data stream is original. this is also a start-up option pin, and requires a pull-up or pull-down resistor. pro/c - professional channel status bit output or c-bit data input the pro/c pin either reflects the state of the professional/consumer channel status bit in the incoming aes3 type data stream, or is the serial c-bit input for the aes3 type transmitted data, clocked by olrck. audio /v - audio channel status bit output or v-bit data input the audio /v pin either reflects the state of the audio/non audio channel status bit in the incoming aes3 type data stream, or is the v-bit data input for the aes3 type transmitted data stream, clocked by olrck.
CS8420 60 ds245pp2 14.5 hardware mode 4 description (transceive data flow, no src) hardware mode 4 data flow is shown in figure 29. audio data is input via the aes3 receiver, and rout- ed to the serial audio output port. different audio data synchronous to rmck may be input into the serial audio input port, and output via the aes3 transmitter. the channel status data, user data and validity bit information are handled in 2 alternative modes: 4a and 4b, determined by a start-up resistor on the copy pin. in mode 4a, the received pro, copy, orig, emph , and audio channel status bits are output on pins. the transmitted channel status bits are copied from the received channel status data, and the transmitted u and v bits are 0. in mode 4b, only the copy and orig pins are output, and reflect the received channel status data. the transmitted channel status bits, user data and validity bits are input serially via the pro/c, em- ph /u and audio /v pins. figure 22 shows the timing requirements. the apms pin allows the serial audio input port to be set to master or slave. if a validity, parity, bi-phase or lock receiver error occurs, the current audio sample is passed unmod- ified to the serial audio output port. start-up options are shown in table 11, and allow choice of the serial audio output port as a master or slave, whether tcbl is an input or an output, and the audio serial ports formats and the source of the transmitted c, u and v data. the following pages contain the detailed pin de- scriptions for hardware mode 4. aes3 encoder &tx serial audio output aes3 rx & decoder c&ubitdatabuffer rxp rxn olrck osclk sdout txp txn rmck rerr copy orig emph/u audio/v tcbl dfc0 dfc1 vd+ h/s power supply pins (vd+, va+, dgnd, agnd) & the reset pin (rst) and the pll filter pin (filt) are omitted from this diagram. please refer to the typical connection diagram for hook-up details. vd+ serial audio input ilrck isclk sdin pro/c apm s figure 29. hardware mode 4 - transceive data flow, without src
CS8420 ds245pp2 61 sdout rmckrerrorigcopy function lo - - - - serial output port is slave hi - - - - serial output port is master --- - lo mode 4a: c transmitted data is copied from received data, u & v =0, received pro, emph , audio is visible --- - hi mode 4b: cuv transmitted data is input serially on pins, received pro, emph and audio is not visible -lolo - - serial input & output format if1&of1 -lohi - - serial input & output format if2&of2 -hilo - - serial input & output format if3&of3 -hihi - - serial input & output format if1&of5 --- lo - tcbl is an input --- hi - tcbl is an output table 11. hardware mode 4 start-up options
CS8420 62 ds245pp2 14.5.1 pin description - hardware mode 4 overall device control: dfc0, dfc1 - data flow control inputs dfc0 and dfc1 inputs determine the major data flow options available in hardware mode, according to table 3. audio input interface: sdin - serial audio input port data input audio data serial input pin. this data will be transmitted out the aes3 port. isclk - serial audio input port bit clock input or output serial bit clock for audio data on the sdin pin. ilrck - serial audio input port left/right clock input or output word rate clock for the audio data on the sdin pin. the frequency will be at the input sample rate (fsi) apms - serial audio input port master or slave apms should be connected to vd+ to set serial audio input port as a master, or connected to dgnd to set the port as a slave. audio output interface: sdout - serial audio output port data output audio data serial output pin. this is also a start-up option pin, and requires a pull-up or pull-down resistor. osclk - serial audio output port bit clock input or output serial bit clock for audio data on the sdout pin. olrck - serial audio output port left/right clock input or output word rate clock for the audio data on the sdout pin. the frequency will be at the input sample rate (fsi).
CS8420 ds245pp2 63 aes3/spdif transmitter interface: txn, txp - differential line driver outputs differential line driver outputs, transmitting aes3 type data. drivers are pulled to low while the CS8420 is in the reset state. tcbl - transmit channel status block start when operated as output, tcbl is high during the first sub-frame of a transmitted channel status block, and low at all other times. when operated as input, driving tcbl high for at least three rmck clocks will cause the current transmitted sub-frame to be the start of a channel status block. aes3/spdif receiver interface: rxp, rxn - differential line receiver inputs differential line receiver inputs, carrying aes3 type data. rmck - input section recovered master clock output input section recovered master clock output. will be at a frequency of 256x the input sample rate (fsi). this is also a start-up option pin, and requires a pull-up or pull-down resistor. rerr - receiver error indicator output when high, indicates a problem with the operation of the aes3 receiver. the status of this pin is updated once per sub-frame of incoming aes3 data. conditions that cause rerr to go high are: parity error, and bi-phase coding error, as well as loss of lock in the pll. this is also a start-up option pin, and requires a pull-up or pull-down resistor. emph /u - pre-emphasis indicator output or u-bit data input the emph /u pin either reflects the state of the emph channel status bit in the incoming aes3 type data stream, or is the serial u-bit input for the aes3 type transmitted data, clocked by olrck. if indicating emphasis emph /u is high when the incoming data indicates 50/15 m s pre-emphasis and low otherwise. copy - copy channel status bit output the copy pin reflects the state of the copy channel status bit in the incoming aes3 type data stream. this is also a start-up option pin, and requires a pull-up or pull-down resistor. orig - original channel status output scms generation indicator. this is decoded from the incoming category code and the l bit. a low output indicates that the audio data stream is 1st generation or higher. a high indicates that the audio data stream is original. this is also a start-up option pin, and requires a pull-up or pull-down resistor. pro/c - professional channel status bit output or c-bit data input the pro/c pin either reflects the state of the professional/consumer channel status bit in the incoming aes3 type data stream, or is the serial c-bit input for the aes3 type transmitted data, clocked by olrck. audio /v - audio channel status bit output or v-bit data input the audio /v pin either reflects the state of the audio/non audio channel status bit in the incoming aes3 type data stream, or is the v-bit data input for the aes3 type transmitted data stream, clocked by olrck.
CS8420 64 ds245pp2 14.6 hardware mode 5 description (aes3 receiver only) hardware mode 5 data flow is shown in figure 30. audio data is input via the aes3 receiver, and rout- ed to the serial audio output port. the pro, copy, orig, emph , and audio channel status bits are output on pins. the decoded c and u bits are also output, clocked by both edges of olrck (master mode only, see figure 21). if a validity, parity, bi-phase or lock receiver error occurs, the current audio sample is passed unmod- ified to the serial audio output port. start-up options are shown in table 12, and allow choice of the serial audio output port as a master or slave, and the serial audio port format. the follow- ing pages contain the detailed pin descriptions for hardware mode 5. serial audio output aes3 rx & decoder c&ubitdatabuffer rxp rxn olrck osclk sdou t rmck rerr copy orig emph rcbl pro audio chs dfc0 dfc1 s/aes vd+ h/s power supply pins (vd+, va+, dgnd, agnd) & the reset pin (rst) and the pll filter pin (filt) are omitted from this dia g ram. please refer to the typical connection dia g ram for hook-up details. vd+ vd+ nverr c u omck figure 30. hardware mode 5 - aes3 receiver only sdout orig emph function lo - - serial output port is slave hi - - serial output port is master - lo lo serial output format of1 - lo hi serial output format of2 - hi lo serial output format of3 - hi hi serial output format of5 table 12. hardware mode 5 start-up options
CS8420 ds245pp2 65 14.6.1 pin description - hardware mode 5 overall device control: dfc0, dfc1 - data flow control inputs dfc0 and dfc1 inputs determine the major data flow options available in hardware mode, according to table 3. s/aes - serial audio or aes3 input select s/aes is connected to dgnd in hardware mode 5, in order to select the aes3 input. omck - output section master clock input output section master clock input. this pin is not used in this mode and should be connected to dgnd. audio output interface: sdout - serial audio output port data output audio data serial output pin. this is also a start-up option pin, and requires a pull-up or pull-down resistor. osclk - serial audio output port bit clock input or output serial bit clock for audio data on the sdout pin. olrck - serial audio output port left/right clock input or output word rate clock for the audio data on the sdout pin. the frequency will be at the input sample rate (fsi). aes3/spdif receiver interface: rxp, rxn - differential line receiver inputs differential line receiver inputs, carrying aes3 type data. rmck - input section recovered master clock output input section recovered master clock output. will be at a frequency of 256x the input sample rate (fsi).
CS8420 66 ds245pp2 rerr - receiver error indicator when high, indicates a problem with the operation of the aes3 receiver. the status of this pin is updated once per sub-frame of incoming aes3 data. conditions that cause rerr to go high are: validity, parity error, and bi-phase coding error, as well as loss of lock in the pll. nverr - no validity receiver error indicator when high, indicates a problem with the operation of the aes3 receiver. the status of this pin is updated once per frame of incoming aes3 data. conditions that cause nverr to go high are: parity error, and bi-phase coding error, as well as loss of lock in the pll. emph - pre-emphasis indicator output emph is low when the incoming aes3 data indicates the presence of 50/15 m s pre-emphasis. when the aes3 data indicates the absence of pre-emphasis or the presence of non 50/15 m s pre-emphasis emph is high. this is also a start-up option pin, and requires a pull-up or pull-down resistor. copy - copy channel status bit output the copy pin reflects the state of the copy channel status bit in the incoming aes3 type data stream. orig - original channel status output scms generation indicator. this is decoded from the incoming category code and the l bit. a low output indicates that the audio data stream is 1st generation or higher. a high indicates that the audio data stream is original. this is also a start-up option pin, and requires a pull-up or pull-down resistor. pro - professional channel status bit output the pro pin reflects the state of the professional/consumer channel status bit in the incoming aes3 type data stream. audio - audio channel status bit output the audio pin reflects the state of the audio/non audio channel status bit in the incoming aes3 type data stream. rcbl - receiver channel status block output rcbl indicates the beginning of a received channel status block. rcbl goes high 2 frames after the reception of a z preamble, remains high for 16 frames while copy, orig, audio, emph and pro are updated, and returns low for the remainder of the block. rcbl changes on rising edges of rmck. chs - channel select input selects which sub-frames channel status data is output on the emph , copy, orig, pro and audio pins. channel a is selected when chs is low, channel b is selected when chs is high. u - user data output the u pin outputs user data from the aes3 receiver, clocked by rising and falling edges of olrck. c - channel status data output the c pin outputs channel status data from the aes3 receiver, clocked by rising and falling edges of olrck.
CS8420 ds245pp2 67 14.7 hardware mode 6 description (aes3 transmitter only) hardware mode 6 data flow is shown in figure 31. audio data is input via the serial audio input port and routed to the aes3 transmitter. the transmitted channel status, user and validity data may be input in 2 alternative methods, deter- mined by the state of the cen pin. mode 6a is se- lected when the cen pin is low. in mode 6a, the user data and validity bit are input via the u and v pins, clocked by both edges of ilrck. the chan- nel status data is derived from the state of the copy/c, orig, emph , and audio pins. table 13 shows how the copy/c and orig pins map to channel status bits. in consumer mode, the trans- mitted category code shall be set to sample rate converter (0101100). mode 6b is selected when the cen pin is high. in mode 6b, the channel status, user data and validity bit are input serially via the copy/c, u and v pins. these pins are clocked by both edges of ilrck (if the port is in master mode). figure 22 shows the timing requirements. the channel status block pin (tcbl) may be an in- put or an output, determined by the state of the tcbld pin. the serial audio input port data format is selected as shown in table 14, and may be set to master or slave by the state of the apms input pin. the following pages contain the detailed pin de- scriptions for hardware mode 6. aes3 encoder &tx serial audio input c, u, v data buffer ilrck isclk txp copy/c orig emph audio tcbl dfc0 dfc1 s/aes vd+ h/s o utput clock source omck power supply pins (vd+, va+, dgnd, agnd) & the reset pin (rst) are omitted from this diagram. please refer to the typical connection diagram for hook-up details. vd+ sdin sfmt1 sfmt0 vd+ filt txn cen u v vd+ tcbld apms figure 31. hardware mode 6 - aes3 transmitter only copy/c orig function 00 pro=0, copy=0, l=0 01 pro=0, copy=0, l=1 10 pro=0, copy=1, l=0 11 pro=1 table 13. hw 6c copy/c and orig pin function sfmt1 sfmt0 function 00 serial input format if1 01 serial input format if2 10 serial input format if3 11 serial input format if4 table 14. hw 6 serial audio port format selection
CS8420 68 ds245pp2 14.7.1 pin description - hardware mode 6 overall device control: dfc0, dfc1 - data flow control inputs dfc0 and dfc1 inputs determine the major data flow options available in hardware mode, according to table 3. s/aes - serial audio or aes3 input select s/aes is connected to vd+ in hardware mode 6, in order to select the serial audio input. sfmt0, sfmt1 - serial audio input port data format select inputs sfmt0 and sfmt1 select the serial audio input port format. see table 14. omck - output section master clock input output section master clock input. the frequency must be 256x the output sample rate (fso). audio input interface: sdin - serial audio input port data input audio data serial input pin. isclk - serial audio input port bit clock input or output serial bit clock for audio data on the sdin pin. ilrck - serial audio input port left/right clock input or output word rate clock for the audio data on the sdin pin. apms - serial audio input port master or slave apms should be connected to vd+ to set serial audio input port as a master, or connected to dgnd to set the port as a slave. aes3/spdif transmitter interface: txn, txp - differential line driver outputs differential line driver outputs, transmitting aes3 type data. drivers are pulled to low while the CS8420 is in the reset state. * pins which remain the same function in all modes . copy/c dfc0 emph sfmt0 sfmt1 va+ agnd filt rst apms tcbld ilrck isclk sdin 28 27 26 25 *24 *23 *22 21 20 19 18 17 16 15 1 2 3 4 5 6* 7* 8* 9* 10 11 12 13 14 orig dfc1 txp txn h/s vd+ dgnd omck s/aes audio u v cen tcbl
CS8420 ds245pp2 69 tcbl - transmit channel status block start when operated as output, tcbl is high during the first sub-frame of a transmitted channel status block, and low at all other times. when operated as input, driving tcbl high for at least three omck clocks will cause the current transmitted sub-frame to be the start of a channel status block. tcbld - transmit channel status block direction input connect tcbld to vd+ to set tcbl as an output. connect tcbld to dgnd to set tcbl as an input. emph - pre-emphasis indicator input in mode 6b, emph pin low sets the 3 emph channel status bits to indicate 50/15 m s pre-emphasis. if emph is high the 3 emph channel status bits are set to 000 indicating no pre-emphasis. copy/c - copy channel status bit input or c bit input in mode 6b, the copy/c pin determines the state of the copy, pro and l channel status bits in the outgoing aes3 type data stream (see table 13). in mode 6a, the copy/c pin becomes the direct c bit input data pin. orig - orig channel status bit input in mode 6b, the orig pin determines the state of the copy, pro and l channel status bits in the outgoing aes3 type data stream. see table 13. audio - audio channel status bit input in mode 6b, the audio pin determines the state of the audio/non audio channel status bit in the outgoing aes3 type data stream. v - validity bit input in modes 6a and 6b, the v pin input determines the state of the validity bit in the outgoing aes3 transmitted data. this pin is sampled on both edges of the ilrck. u - user data bit input in modes 6a and 6b, the u pin input determines the state of the user data bit in the outgoing aes3 transmitted data. this pin is sampled on both edges of the ilrck. cen - c bit input enable mode input the cen pin determines how the channel status data bits are input. when cen is low, hardware mode 6a is selected, where the copy/c, orig, emph and audio pins are used to enter selected channel status data. when cen is high, hardware mode 6b is selected, where the copy/c pin is used to enter serial channel status data.
CS8420 70 ds245pp2 15. appendix a: external aes3/spdif/iec60958 transmitter and receiver components this section details the external components re- quired to interface the aes3 transmitter and re- ceiver to cables and fiber-optic components. 15.1 aes3 transmitter external components the output drivers on the CS8420 are designed to drive both the professional and consumer interfac- es. the aes3 specification for professional/broad- cast use calls for a 110 w source impedance and a balanced drive capability. since the transmitter output impedance is very low, a 110 w resistor should be placed in series with one of the transmit pins. the specifications call for a balanced output drive of 2-7 volts peak-to-peak into a 110 w load with no cable attached. using the circuit in figure 32, the output of the transformer is short- circuit protected, has the proper source impedance, and provides a 5 volt peak-to-peak signal into a 110 w load. lastly, the two output pins should be attached to an xlr connector with male pins and a female shell, and with pin 1 of the connector grounded. in the case of consumer use, the iec60958 specifi- cations call for an unbalanced drive circuit with an output impedance of 75 w and a output drive level of 0.5 v peak-to-peak 20% when measured across a 75 w load using no cable. the circuit shown in figure 33 only uses the txp pin and provides the proper output impedance and drive level using standard 1% resistors. the connector for a consum- er application would be an rca phono socket. this circuit is also short circuit protected. the txp pin may be used to drive ttl or cmos gates as shown in figure 34. this circuit may be used for optical connectors for digital audio since they usually have ttl or cmos compatible in- puts. this circuit is also useful when driving multi- ple digital audio outputs since rs422 line drivers have ttl compatible inputs. 15.2 aes3 receiver external components the CS8420 aes3 receiver is designed to accept both the professional and consumer interfaces. the digital audio specifications for professional use call for a balanced receiver, using xlr connectors, with 110 w 20% impedance. the xlr connector on the receiver should have female pins with a male shell. since the receiver has a very high input im- pedance, a 110 w resistor should be placed across the receiver terminals to match the line impedance, as shown in figure 35. although transformers are not required by the aes, they are, however, strong- ly recommended. if some isolation is desired without the use of trans- formers, a 0.01 m f capacitor should be placed in se- 110 w txp txn xlr 1 CS8420 figure 32. professional output circuit 374 w 90.9 w txp txn rca phono CS8420 figure 33. consumer output circuit txp txn ttl or cmos gate CS8420 figure 34. ttl/cmos output circuit
CS8420 ds245pp2 71 ries with each input pin (rxp and rxn) as shown in figure 36. however, if a transformer is not used, high frequency energy could be coupled into the re- ceiver, causing degradation in analog performance. figures 35 and 36 show an optional dc blocking capacitor (0.1 m f to 0.47 m f) in series with the ca- ble input. this improves the robustness of the re- ceiver, preventing the saturation of the transformer, or any dc current flow, if a dc voltage is present on the cable. in the configuration of systems, it is important to avoid ground loops and dc current flowing down the shield of the cable that could result when boxes with different ground potentials are connected. generally, it is good practice to ground the shield to the chassis of the transmitting unit, and connect the shield through a capacitor to chassis ground at the receiver. however, in some cases it is advanta- geous to have the ground of two boxes held to the same potential, and the cable shield might be de- pended upon to make that electrical connection. generally, it may be a good idea to provide the op- tion of grounding or capacitively coupling the shield to the chassis. in the case of the consumer interface, the standards call for an unbalanced circuit having a receiver im- pedance of 75 w 5%. the connector for the con- sumer interface is an rca phono socket. the receiver circuit for the consumer interface is shown in figure 37. the circuit shown in figure 38 may be used when external rs422 receivers, optical receivers or other ttl/cmos logic outputs drive the CS8420 receiv- er section. 15.3 isolating transformer requirements the transformer should be capable of operating from 1.5 to 14 mhz, which is equivalent to an au- dio data rate of 25 khz to 108 khz after bi-phase mark encoding. transformers provide isolation from ground loops, 60hz noise, and common mode noise and interference. one of the important con- siderations when choosing transformers is mini- mizing shunt capacitance between primary and secondary windings. the higher the shunt capaci- tance, the lower the isolation between primary and secondary, and the more coupling of high frequen- cy energy. this energy appears in the form of com- mon mode noise on the receive side ground and has the potential to degrade analog performance. therefore, for best performance, shielded trans- formers optimized for minimum shunt capacitance should be used. see application note 134 for a se- lection of manufacturers and their part numbers. 1 xlr twisted pair 110 w 110 w CS8420 rxp rxn *seetext figure 35. professional input circuit 1 xlr twisted pair 110 w 110 w CS8420 rxp rxn 0.01 f m 0.01 f m *seetext figure 36. transformerless professional input circuit rca phono rxp rxn CS8420 coax 75 w 75 w 0.01 f m 0.01 f m figure 37. consumer input circuit rxp rxn CS8420 0.01 f m 0.01 f m ttl/cmos gate figure 38. ttl/cmos input circuit
CS8420 72 ds245pp2 16. appendix b: channel status and user data buffer management the CS8420 has a comprehensive channel status (c) and user (u) data buffering scheme, which al- lows automatic management of channel status blocks and user data. alternatively, sufficient con- trol and access is provided to allow the user to com- pletely manage the c and u data via the control port. 16.1 aes3 channel status(c) bit management the CS8420 contains sufficient ram to store a full block of c data for both a and b channels (192x2 = 384 bits), and also 384 bits of u information. the user may read from or write to these rams via the control port. unlike the audio data, it is not possible to 'sample- rate' convert the c bits. this is because specific meanings are associated with fixed-length data pat- terns, which should not be altered. since the output data rate of the CS8420 will differ from the input rate when sample-rate conversion is done, it is not feasible to directly transfer incoming c data to the output. the CS8420 manages the flow of channel status data at the block level, meaning that entire blocks of channel status information are buffered at the input, synchronized to the output timebase, and then transmitted. the buffering scheme involves a cascade of 3 block-sized buffers, named d,e and f, as shown in figure 39. the msb of each byte rep- resents the first bit in the serial c data stream. for example, the msb of byte 0 (which is at control port address 32) is the consumer/professional bit for channel status block a. the first buffer, d, accepts incoming c data from the aes receiver. the 2nd buffer, e, accepts entire blocks of data from the d buffer. the e buffer is also accessible from the control port, allowing read and writing of the c data. the 3rd buffer (f) is used as the source of c data for the aes3 transmitter. the f buffer accepts block transfers from the e buffer. if the input rate is slower than the output rate (so that in a given time interval, more channel status blocks are transmitted than received), some buff- ered c blocks will be transmitted multiple times. if the input rate is faster than the output rate, some will not be transmitted at all. this is illustrated in figure 40). in this manner, channel status block in- tegrity is maintained. if the transmitted sample count bits are important in the application, then they will need to be updated via the control port by the microcontroller for every outgoing block. 16.1.1 manually accessing the e buffer the user can monitor the data being transferred by reading the e buffer, which is mapped into the reg- ister space of the CS8420, via the control port. the user can modify the data to be transmitted by writ- ing to the e buffer. control port from aes3 receiver to aes3 transmitter e 24 words 8-bits 8-bits ab df received data buffer transmit data buffer figure 39. channel status data buffer structure
CS8420 ds245pp2 73 the user can configure the interrupt enable register to cause interrupts to occur whenever d to e or e to f buffer transfers occur. this allows deter- mination of the allowable time periods to interact with the e buffer. also provided are d to e and e to f inhibit bits. the associated buffer transfer is disabled whenever the user sets these bits. these may be used whenever long control port interactions are occurring. they can also be used to align the be- havior of the buffers with the selected audio data flow. for example, if the audio data flow is serial port in to aes3 out, then it is necessary to inhibit d toe transfers, since these would overwrite the desired transmit c data with invalid data. flowcharts for reading and writing to the e buffer are shown in figures 41 and 42. for reading, since a d to e interrupt just occurred, then there a sub- stantial time interval until the next d to e transfer (approximately 192 frames worth of time). this is usually plenty of time to access the e data without having to inhibit the next transfer. for writing, the sequence starts after a e to f trans- fer, which is based on the output timebase. since a d to e transfer could occur at any time (this is based on the input timebase), then it is important to inhibit d to e transfers while writing to the e buffer until all writes are complete. then wait until the next e to f transfer occurs before enabling d to e transfers. this ensures that the data written to the e buffer actually gets transmitted and not overwritten by a d to e transfer. if the channel status block to transmit indicates pro mode, then the crcc byte is automatically calculated by the CS8420, and does not have to be written into the last byte of the block by the host microcontroller. block 1 block 2 block 3 block 4 block 5 block 1 block 1 block 2 block 3 block 3 block 4 block 5 contents of e buffer updated at fsi rate contents of f buffer updated from e output at fso rate fso > fsi (3/2) causes blocks 1 and 3 to be transmitted twice fso < fsi (2/3) causes blocks 3 and 6 to not be transmitted contents of e buffer updated at fsi rate contents of f buffer updated from e output at fso rate block 1 block 2 block 3 block 4 block 5 block 6 block 7 block 1 block 2 block 4 block 5 block 7 figure 40. channel status block handling when fso is not equal to fsi d to e interrupt occurs optionally set d to e inhibit read e data if set, clear d to e inhibit return figure 41. flowchart for reading the e buffer e to f interrupt occurs optionally set e to f inhibit clear d to e inhibit if set, clear e to f inhibit return set d to e inhibit write e data wait for e to f transfer figure 42. flowchart for writing the e buffer
CS8420 74 ds245pp2 16.1.2 reserving the first 5 bytes in the e buffer d to e buffer transfers periodically overwrite the data stored in the e buffer. this can be a problem for users who want to transmit certain channel sta- tus settings which are different from the incoming settings. in this case, the user would have to super- impose his settings on the e buffer after every d to e overwrite. to avoid this problem, the CS8420 has the capabil- ity of reserving the first 5 bytes of the e buffer for user writes only. when this capability is in use, in- ternal d to e buffer transfers will not affect the first 5 bytes of the e buffer. therefore, the user can set values in these first 5 e bytes once, and the set- tings will persist until the next user change. this mode is enabled via the channel status data buffer control register. 16.1.3 serial copy management system (scms) in software mode, the CS8420 allows read/modi- fy/write access to all the channel status bits. for consumer mode scms compliance, the host mi- crocontroller needs to read and manipulate the cat- egory code, copy bit and l bit appropriately. in hardware mode, the scms protocol can be fol- lowed by either using the copy and orig input pins, or by using the c bit serial input pin. these options are documented in the hardware mode sec- tion of this data sheet (starting on14 page 49) 16.1.4 channel status data e buffer access the e buffer is organized as 24 x 16-bit words. for each word the ms byte is the a channel data, and the ls byte is the b channel data (see figure 39). there are two methods of accessing this memory, known as one byte mode and two byte mode. the desired mode is selected via a control register bit. 16.1.5 one byte mode in many applications, the channel status blocks for the a and b channels will be identical. in this situ- ation, if the user reads a byte from one of the chan- nel's blocks, the corresponding byte for the other channel will be the same. similarly, if the user wrote a byte to one channel's block, it would be necessary to write the same byte to the other block. one byte mode takes advantage of the often identi- cal nature of a and b channel status data. when reading data in one byte mode, a single byte is returned, which can be from channel a or b data, depending on a register control bit. if a write is be- ing done, the CS8420 expects a single byte to be in- put to its control port. this byte will be written to both the a and b locations in the addressed word. one byte mode saves the user substantial control port access time, as it effectively accesses 2 bytes worth of information in 1 byte's worth of access time. if the control port's auto-increment address- ing is used in combination with this mode, multi- byte accesses such as full-block reads or writes can be done especially efficiently. 16.1.6 two byte mode there are those applications in which the a and b channel status blocks will not be the same, and the user is interested in accessing both blocks. in these situations, two byte mode should be used to access the e buffer. in this mode, a read will cause the CS8420 to out- put two bytes from its control port. the first byte out will represent the a channel status data, and the 2nd byte will represent the b channel status data. writing is similar, in that two bytes must now be input to the CS8420's control port. the a channel status data is first, b channel status data second.
CS8420 ds245pp2 75 16.2 aes3 user (u) bit management the CS8420 u bit manager has four operating modes: mode 1. transmit all zeros. mode 2. block mode. mode 3. reserved mode 4. iec consumer b. 16.2.1 mode 1: transmit all zeros mode 1 causes only zeros to be transmitted in the output u data, regardless of e buffer contents or u data embedded in an input aes3 data stream. this mode is intended for the user who does not want to transceive u data, and simply wants the output u channel to contain no data. 16.2.2 mode 2: block mode mode 2 is very similar to the scheme used to con- trol the c bits. entire blocks of u data are buffered from input to output, using a cascade of 3 block- sized rams to perform the buffering. the user has access to the second of these 3 buffers, denoted the e buffer, via the control port. block mode is de- signed for use in aes3 in, aes3 out situations in which input u data is decoded using a microcon- troller via the control port. it is also the only mode in which the user can merge his own u data into the transmitted aes3 data stream. the u buffer access only operates in two byte mode, since there is no concept of a and b blocks for user data. the arrangement of the data in the each byte is that the msb is the first received bit and is the first transmitted bit. the first byte read is the first byte received, and the first byte sent is the first byte transmitted. 16.2.3 iec60958 recommended u data format for consumer applications modes (3) and (4) are intended for use in aes3 in, aes3 out situations, in which the input u data is formatted as recommended in the iec60958 dig- ital audio interface, part 3: consumer applica- tions document. in this format, messages are formed in the u data from information units or ius. an iu is 8 bits long, and the msb is always 1, and is called the start bit, or 'p' bit. the remaining 7 bits are called q r s t u v & w, and carry the desired data. a message consists of 3 to 129 ius. multiple ius are considered to be in the same message if they are separated by zero to eight 0s, denoted here as filler. a filler sequence of nine or more 0s indicates an in- ter-message gap. the desired information is nor- mally carried in the sequence of corresponding bits in the ius. for example, the sequential q bits from each iu make up the q sub-code data that is used to indicate compact disk track information. this data is automatically extracted from the received iec60958 stream, and is presented in the control port register map space. where incoming u data is coded in the above for- mat, and needs to be re-transmitted, the data trans- fer cannot be done using shift registers, because of the different fsi and fso sampling clocks. instead, input data must be buffered in a fifo structure, and then read out by the aes3 transmitter at appropri- ate times. each bit of each iu must be transceived; unlike the audio samples, there can be no sample rate conver- sion of the u data. therefore, there are 2 potential problems: (1) message partitioning when fso > fsi, more data is transmitted than re- ceived per unit time. the fifo will frequently be completely emptied. sensible behavior must occur when the fifo is empty, otherwise, a single incom- ing message may be erroneously be partitioned into multiple, smaller, messages. (2) overwriting when fso < fsi, more data is received than trans- mitted per unit time. there is a danger of the fifo
CS8420 76 ds245pp2 becoming completely full, allowing incoming data to overwrite data that has not yet been output through the aes3 transmitter. 16.2.4 mode (3): reserved this mode has been removed. use iec consumer mode b. 16.2.5 mode (4): iec consumer b in this mode, the partitioning problem is solved by buffering an entire message before starting to trans- mit it. in this scheme, zero-segments between mes- sages will be expanded when fso > fsi, but the integrity of individual messages is preserved. the overwriting problem (when fso < fsi) is solved by only storing a portion of the input u data in the fifo. specifically, only the ius themselves are stored (and not the zeroes that provide inter-iu and inter-message filler). an inter-iu filler seg- ment of fixed length (of) will be added back to the messages at the fifo output, where the length of of is equal to the shortest observed input filler seg- ment (if). storing only ius (and not filler) within the fifo makes it possible for the slower aes3 transmitter to catch up to the faster aes3 receiver as data is read out of the fifo. this is because nothing is written into the fifo when long strings of zeroes are input to the aes-ebu receiver. during this time of no writing, the transmitter can read out data that had previously accumulated, allowing the fifo to empty out. if the fifo becomes complete- ly empty, zeroes are transmitted until a complete message is written into the fifo. mode 4 is not fail-safe; the fifo can still get com- pletely full if there isn't enough zero-padding be- tween incoming messages. it is up to the user to provide proper padding, as defined below: minimum padding = (fsi/fso - 1)*[8n + (n-1)*if +9] + 9 where n is the number of ius in the message, if is the number of filler bits between each iu, and fso fsi. example 1: fsi/fso = 2, n=4, if=1: minimum proper padding is 53 bits. example 2: fsi/fso = 1, n=4, if=7: min proper padding is 9 bits. the CS8420 detects when an overwrite has oc- curred in the fifo, and synchronously resets the entire fifo structure to prevent corrupted u data from being merged into the transmitted aes3 data stream. the CS8420 can be configured to generate an interrupt when this occurs. mode 4 is recommended for properly formatted u data where mode 3 cannot provide acceptable per- formance, either because of a too-extreme fsi/fso ratio, or because it's unacceptable to change the lengths of filler segments. mode 4 provides error- free performance over the complete range of fsi/fso ratios (provided that the input messages are properly zero-padded for fsi > fso).
CS8420 ds245pp2 77 17. parameter definitions input sample rate (fsi) the sample rate of the incoming digital audio. input frame rate the frame rate of the received aes3 format data. output sample rate (fso) the sample rate of the outgoing digital audio. output frame rate the frame rate of the transmitted aes3 format data. dynamic range the ratio of the maximum signal level to the noise floor. total harmonic distortion and noise the ratio of the noise and distortion to the test signal level. normally referenced to 0 dbfs. peak idle channel noise component with an all-zero input, what is the amplitude of the largest frequency component visible with a 16k point fft. the value is in db ratio to full-scale. input jitter tolerance the amplitude of jitter on the aes3 stream, or in the ilrck clock, that will cause measurable artifacts in the src output. test signal is full scale 9 khz, fsi is 48 khz, fso is different 48 khz, jitter is 2 khz sinusoidal, and audio band white noise. aes3 transmitter output jitter with a jitter free omck clock, what is the jitter added by the aes3 transmitter. gain error the difference in amplitude between the output and the input signal level, within the passband of the digital filter in the src.
CS8420 78 ds245pp2 18. package dimensions inches millimeters dim min max min max a 0.093 0.104 2.35 2.65 a1 0.004 0.012 0.10 0.30 b 0.013 0.020 0.33 0.51 c 0.009 0.013 0.23 0.32 d 0.697 0.713 17.70 18.10 e 0.291 0.299 7.40 7.60 e 0.040 0.060 1.02 1.52 h 0.394 0.419 10.00 10.65 l 0.016 0.050 0.40 1.27 0 8 0 8 28l soic (300 mil body) package drawing d h e b a1 a c l seating plane 1 e
? notes ?


▲Up To Search▲   

 
Price & Availability of CS8420

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X